1、docker导出 导入镜像命令
docker save > kafka-manager.tar sheepkiller/kafka-manager:latest
docker load < kafka-manager.tar
2、日志命令
docker logs -f kafka
docker logs --tail 100 kafka
3、拷贝命令
docker cp kkfileview:/opt/kkFileView-4.1.0-SNAPSHOT/config/application.properties /opt
docker cp /opt/application.properties kkfileview:/opt/kkFileView-4.1.0-SNAPSHOT/config
4、运行中的容器设置自启动及关闭自启动
docker update --restart=always <CONTAINER ID>
docker update --restart=always mysql
docker update --restart=no <CONTAINER ID>
docker update --restart=no tomcat
5、进入docker容器
docker exec -it kkfileview bash
docker exec -it kkfileview /bin/bash
docker exec -it kkfileview /bin/sh
6、删除镜像
docker rmi [image]
docker image rm [image]