docker 查用命令
开机启动docker
systemctl enable docker.service
启动docker
sudo systemctl start docker
# 停止 docker
sudo systemctl stop docker
# 重启docker
sudo systemctl restart docker
查看docker服务状态
service docker status
卸载
1.查询安装过的包
yum list installed | grep docker
2.删除安装的软件包
yum -y remove docker-engine.x86_64
3.删除镜像/容器等
rm -rf /var/lib/docker
.如果要删除指定镜像:
docker rmi IMAGE ID #比如要删除php docker rmi 36c3c974e6ee