• 查看是否打开binlog模式
    show variables like 'log_bin'
  • 查看binlog日志文件列表
    show binary logs
  • 查看当前正在写入的binlog文件
    show master status
  • 清空重置binlog
    reset master
docker pull canal/canal-server:v1.1.4

docker run --name canal -d canal/canal-server:v1.1.4

docker cp canal:/home/admin/canal-server/conf/canal.properties /root/canal/conf/canal.properties
docker cp canal:/home/admin/canal-server/conf/example/instance.properties /root/canal/conf/example/instance.properties


#修改外部配置文件instance.properties
#canal.instance.master.address=127.0.0.1:6379
#canal.instance.dbUsername=root
#canal.instance.dbPassword=123456


docker run --name canal -p 11111:11111 -d -v /root/canal/conf/example/instance.properties:/home/admin/canal-server/conf/example/instance.properties -v /root/canal/conf/canal.properties:/home/admin/canal-server/conf/canal.properties canal/canal-server:v1.1.4