docker启动异常driver not supported

Posted 创可贴Y

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker启动异常driver not supported相关的知识,希望对你有一定的参考价值。

使用阿里云机器重启docker服务出现错误提示信息

[[email protected] ~]# 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 查看详情

[[email protected] ~]# journalctl -xe
Apr 27 13:48:23 *** dockerd[1744]: time="2018-04-27T13:48:23.423296237+08:00" level=info msg="libcontainerd: new containerd process, pid: 1747"
Apr 27 13:48:24 *** dockerd[1744]: time="2018-04-27T13:48:24.432236287+08:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"

 

解决方案:修改docker镜像,容器存放位置。

默认情况下docker的存放位置为:

/var/lib/docker

[[email protected] ~]# sudo mv /var/lib/docker /var/lib/docker.old  

正常启动docker

[[email protected] ~]# service docker start
Redirecting to /bin/systemctl start docker.service

检查是否能查看镜像

[[email protected] ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

确认无误后卸载临时挂载点,删除/var/lib/docker.old

[[email protected] ~]# rm -rf /var/lib/docker.old

 

以上是关于docker启动异常driver not supported的主要内容,如果未能解决你的问题,请参考以下文章

Docker卸载高版本重装低版本后启动提示:driver not supported

问题解决The “docker“ driver should not be used with root privileges

docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]问题解决

docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]问题解决

Docker查看日志报错Error response from daemon: configured logging driver does not support reading

docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]].