首先拉取镜像

docker pull canal/canal-admin

docker pull canal/canal-server

启动 canal-admin 
docker run -it --name canal-admin  \
-e spring.datasource.address=localhost:3306 \
-e spring.datasource.database=canal_manager \
-e spring.datasource.username=root \
-e spring.datasource.password=123456 \
-p 8089:8089 canal/canal-admin:latest

启动 canal-server
docker run -it --name canal-server \
-e canal.instance.master.address=localhost:3306  \
-e canal.instance.dbUsername=root  \
-e canal.instance.dbPassword=123456  \
-e canal.admin.manager=localhost:8089 \
-e canal.admin.port=11110 \
-e canal.admin.user=admin \
-e canal.admin.passwd=4ACFE3202A5FF5CF467898FC58AAB1D615029441 \
-e canal.admin.register.cluster=test \
-p 11111:11111 canal/canal-server:latest