docker的基本操作
systemctl start docker
systemctl stop docker
systemctl restart docker
systemctl enable docker
systemctl disable docker
systemctl status docker
docker info
docker镜像操作
docker pull centos:7
docker images
docker image rm centos:7
docker save centos:7 | gzip > centos7.tar.gz
docker load < centos7.tar.gz
docker inspect centos:7
docker history centos:7
docker build -t jdk:8
docker数据卷操作
docker volume create 数据卷名称
docker vloume ps
docker voluem rm 数据卷名称
docker volume inspect
docker容器操作
docker run -d --name xxx -p 8090:8090 -v ... --always ... -e ..
docker ps
docker ps -a
docker logs 容器id
docker inspect 容器id
docker stop 容器id
docker start 容器id
docker restart 容器id
docker rm -f 容器id
docker exec -it 容器id bash
docker container prune (清除所有的exit状态的容器)
exit
docker网络操作
docker network create t-net(网络名称)
docker network inspect t-net
...
|