canal官方Docker镜像,基于openEuler构建,是Alibaba开发的开源实时数据同步工具,通过捕获和解析MySQL binlog,使下游系统近实时消费变更数据。

下载次数: 0状态:社区镜像维护者:openEuler 官方容器镜像仓库类型:镜像最近更新:
下载命令
点击查看

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

TagsCurrentlyArchitectures
1.1.8-oe2403sp1canal 1.1.8 on openEuler 24.03-LTS-SP1amd64, arm64
1.1.8-oe2403sp4canal 1.1.8 on openEuler 24.03-LTS-SP4amd64, arm64
1.1.8-oe2403sp2canal 1.1.8 on openEuler 24.03-LTS-SP2amd64, arm64

Usage

  • Preparation

    For a self-hosted MySQL, you need to enable binlog and configure the binlog format as ROW. The my.cnf should 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 slaveId
    

    Note: 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-canal is started, you can view its running logs using docker 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.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 canal 镜像标签

docker pull docker.xuanyuan.run/openeuler/canal:<标签>

DockerHub 原生拉取命令

docker pull openeuler/canal:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告