Job for docker.service failed because the control process exited with error

1 查询安装过的docker包

yum list installed | grep docker

在这里插入图片描述
2 删除安装的docker软件包

yum -y remove docker*

Job for docker.service failed because the control process exited with error_第1张图片
3 检查是否还存在docker

docker -v

在这里插入图片描述
4 重新安装

yum install docker

Job for docker.service failed because the control process exited with error_第2张图片
5 启动docker服务

service docker start

Job for docker.service failed because the control process exited with error_第3张图片
6 查看本机image文件

docker images

7 运行image文件

docker run hello-world

Job for docker.service failed because the control process exited with error_第4张图片
8 删除image文件

docker rmi docker.io/hello-world | a29f45ccde2a
# docker rmi REPOSITORY | IMAGE ID

9 拉取docker image

docker pull hello-world

10 查看本机所有容器

docker ps -a

11 启动 & 停止 & 重启 & 删除容器命令

docker start CONTAINER ID | IMAGE
docker stop CONTAINER ID | IMAGE
docker restart CONTAINER ID | IMAGE
docker rm CONTAINER ID | IMAGE

12 查看当前系统Docker信息

docker info

你可能感兴趣的:(爬坑)