docker基本命令
安装docker参见官方网站
systemctl start docker 启动docker
systemctl status docker
systemctl stop docker
systemctl enable docker
docker images
docker pull 镜像名
docker searcher 镜像名
docker run -id --name=容器名 centos:7
docker run -id --name=容器名 -v ~/data:/root/data centos:7
docker exec -it 容器名 /bin/bash
docker run -id --name=c1 -v /volume centos:7
docker run -id --name=c2 --volumes-from c1 centos:7
docker stop c1 c2
docker rm c1 c2
docker rmi centos:7