canal官方Docker镜像,基于openEuler构建,是Alibaba开发的开源实时数据同步工具,通过捕获和解析MySQL binlog,使下游系统近实时消费变更数据。
Quick reference
-
The official canal docker image.
-
Maintained by: https://gitee.com/openeuler/cloudnative.
-
Where to get help: https://gitee.com/openeuler/cloudnative, https://gitee.com/openeuler/community.
canal | openEuler
Current canal images are built on the https://repo.openeuler.org/. This repository is free to use and exempted from per-user rate limits.
Canal is an open-source project developed by Alibaba for real-time data synchronization. It is designed to capture and parse MySQL binlog (binary logs), allowing downstream systems to consume change data in near real-time.
Supported tags and respective Dockerfile links
The tag of each canal docker image is consist of the version of canal and the version of basic image. The details are as follows
| Tags | Currently | Architectures |
|---|---|---|
| 1.1.8-oe2403sp1 | canal 1.1.8 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
| 1.1.8-oe2403sp4 | canal 1.1.8 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 1.1.8-oe2403sp2 | canal 1.1.8 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
Usage
-
Preparation
For a self-hosted MySQL, you need to enable binlog and configure the binlog format as
ROW. Themy.cnfshould be configured as follows:[mysqld] log-bin=mysql-bin # Enable binlog binlog-format=ROW # Set binlog format to ROW server_id=1 # Server ID required for MySQL replication; do not conflict with Canal's slaveIdNote: For Alibaba Cloud RDS for MySQL, binlog is enabled by default, and the account already has the necessary binlog dump permissions. In this case, you can skip these steps.
You also need to grant permissions to the Canal user, so it can connect as a MySQL slave. If the account already exists, you can directly use
GRANT:CREATE USER 'canal' IDENTIFIED BY 'canal'; GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%'; -- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%'; FLUSH PRIVILEGES; -
Startup
docker run -d --name my-canal -p 30306:3306 openeuler/canal:{Tag}After the instance
my-canalis started, you can view its running logs usingdocker logs.
Question and answering
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
openeuler 命名空间的其他可用镜像:
openeuler/openeuler
openeuler/open-webui
openeuler/openclaw
openeuler/opencode
openeuler/vllm-ascend
openeuler/kylin
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务