docker常用命令
docker docker run hello-world docker search mysql docker pull mysql:5.7.31 docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) docker rmi mysql:latest docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql:5.7.31 docker ps -a -q mysql -h localhost -u root -p netstat -aon | findstr "3306" docker pull centos:centos7 docker run -itd --name centos-test centos:centos7 docker images docker run -itd --privileged=true -v /D/:/soft --name centos-test centos:centos7 docker exec -it centos-test /bin/bash docker stop e25788288ed5 docker stop centos-test docker container ls -all docker container rm centos-test docker commit faf3cbb69fd5 centos:centos7.1 docker run -itd --privileged=true -v /D/:/soft --name centos-test.1 centos:centos7.1 docker exec -it centos-test.1 /bin/bash docker commit faf3cbb69fd5 centos:centos7.2