【Docker】安装docker18.09.6后,无法启动

-------------------------------------------------------------------------------------------------

|  欢迎关注个人公众号  zclinux_note  第一时间获取关于linux使用的技巧。探索Linux的奥秘   |

-------------------------------------------------------------------------------------------------

环境Centos7 docker-ce 18.09.6

用yum 安装好docker-ce后,systemctl start docker  无法启动并报错:

systemctl status docker.service

● docker.service- Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) 
   Active: failed (Result: start-limit) since Thu 2016-02-25 17:26:11 CST; 16s ago
   Docs: http://docs.docker.com
 Process: 16384 ExecStart=/usr/bin/docker
 daemon OPTIONSDOCKER_STORAGE_OPTIONS DOCKERNETWORKOPTIONSADD_REGISTRY BLOCKREGISTRYINSECURE_REGISTRY (code=exited, status=1/FAILURE)
 Main PID: 16384 (code=exited, status=1/FAILURE)
  Feb 25 17:26:10 joinApp2 systemd[1]: Failed to start Docker Application Container Engine. Feb 25 17:26:10 joinApp2 systemd[1]: Unit docker.service entered failed state. Feb 25 17:26:10 joinApp2 systemd[1]: docker.service failed.
Feb 25 17:26:11 joinApp2 systemd[1]: docker.service holdoff time over, scheduling restart. 
Feb 25 17:26:11 joinApp2 systemd[1]: start request repeated too quickly for docker.service 
Feb 25 17:26:11 joinApp2 systemd[1]: Failed to start Docker Application Container Engine. 
Feb 25 17:26:11 joinApp2 systemd[1]: Unit docker.service entered failed state. 
Feb 25 17:26:11 joinApp2 systemd[1]: docker.service failed.、

查看后台的message也报错:

Jun 18 00:14:48 [localhost] containerd: time="2019-06-18T00:14:48.390443689-04:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/containerd/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter"
Jun 18 00:14:48 [localhost] containerd: time="2019-06-18T00:14:48.390465885-04:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
Jun 18 00:14:48 [localhost] containerd: time="2019-06-18T00:14:48.394723025-04:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found.\n": exit status 1"
Jun 18 00:14:48 [localhost] containerd: time="2019-06-18T00:14:48.394777315-04:00" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
 

找不到解决办法,于是将docker-ce  docker-ce-cli containd.io 全部都卸载了

升级yum       yum update

之后再次装yum install doker-ce docker-ce-cli containd.io -y

全部安装完成后,启动docker

systemctl start docker

发现没有报错启动成功,后台的message也恢复正常。

systemctl run hello-world

也输出正常。。。这很迷。。不知道是什么问题,解决办法就是升级了yum(生产环境请谨慎操作)

你可能感兴趣的:(docker)