CentOS 7 yum安装Docker 报错

CentOS 7 yum安装Docker 报错

参考网址http://www.runoob.com/docker/centos-docker-install.html

1、升级

#yum update

2、添加阿里云的源

# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

报错

-bash: yum-config-manager: command not found

装一个小插件

# yum install -y yum-utils \
>   device-mapper-persistent-data \
>   lvm2

3、更新yum缓存

# yum makecache fast

4、敲了两条不知道干嘛的命令

#  yum-config-manager --enable docker-ce-edge
#  yum-config-manager --enable docker-ce-test

5、安装doctor

# yum -y install docker-ce

6、启动服务

#systemctl start docker

然后就报错了

Redirecting to /bin/systemctl start  docker.service

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

弄了半天也没搞定,最后恢复了快照,重新yum,去掉了不知道干嘛用的那两条建库命令。
就好了~!

猜你喜欢

转载自blog.csdn.net/timonium/article/details/86521469
今日推荐