mysql容器部署
sudo docker run -itd \
--name mysql-test \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=123456 \
-v /data/rookie/module/LogiKM-master/container/dockerfiles/kafka-manager-2.4.2:/data/sql \
a.newegg.org/newegg-docker/mysql:8
sudo docker exec -it 26675c6a3699 /bin/bash
mysql -uroot -p123456
source /data/sql/create_mysql_table.sql
部署logikm容器
cd kafka-manager-2.4.2
sudo vi application.yml
sudo docker build -t logikm .
sudo docker run -it \
-e ZK_HOSTS=10.16.78.136:2182 \
--net=host \
logikm