docker启动异常 prior storage driver overlay2 failed: driver not supported
重启docker服务出现错误提示信息[root@ouou ~]# systemctl restart dockerJob for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” ..
重启docker服务出现错误提示信息
[root@ouou ~]# systemctl restart docker
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
使用 journalctl -xe 查看详情
[root@ouou ~]# journalctl -xe
…
Mar 06 10:32:46 master-0 dockerd[6893]: time=“2020-03-06T10:32:46.702169311+08:00” level=info msg=“libcontainerd: new containerd process, pid: 6901”
Mar 06 10:32:47 master-0 dockerd[6893]: time=“2020-03-06T10:32:47.710944756+08:00” level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"
Mar 06 10:32:47 master-0 dockerd[6893]: Error starting daemon: error initializing graphdriver: driver not supported
Mar 06 10:32:47 master-0 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 06 10:32:47 master-0 systemd[1]: Failed to start Docker Application Container Engine.
…
解决方案:修改docker镜像,容器存放位置。
默认情况下docker的存放位置为:
/var/lib/docker
[root@ouou ~]# sudo mv /var/lib/docker /var/lib/docker.old
正常启动docker
[root@ouou ~]# service docker start
Redirecting to /bin/systemctl start docker.service
检查是否能查看镜像
[root@ouou ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
确认无误后卸载临时挂载点,删除/var/lib/docker.old
[root@ouou ~]# rm -rf /var/lib/docker.old
更多推荐
所有评论(0)