查看镜像 docker images
查看容器 docker ps -a
停止容器 docker stop container_id
运行容器 docker run -d -p name:tag
进入容器 sudo docker exec -it CONTAINER /bin/bash
执行容器命令 sudo docker exec -i CONTAINER /bin/bash xxx.sh
构建Dockerfile docker build -t name:tag
启动docker systemctl start docker
守护进程重启 sudo systemctl daemon-reload
重启docker服务 systemctl restart docker
重启docker服务 sudo service docker restart
关闭docker service docker stop
关闭docker systemctl stop docker