1.启动、重启、关闭docker
service docker startservice docker restartservice docker stop2.列出镜像docker images3.列出容器docker ps -a4.创建容器docker run --name nginx2 -it -p 81:80 -v /data/nginx/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf --restart=always 17nginx:latest5.执行容器命令docker exec nginx2 ls /usr/local/nginx6.进入容器docker exec -it nginx2 /bin/bash7.拷贝文件docker cp nginx2:/usr/local/nginx /home8.退出容器exit9.删除容器docker rm nginx2 -f10.删除镜像docker rmi centos