解决 error creating overlay mount to /var/lib/docker/overlay2

Posted 涛子GE哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 error creating overlay mount to /var/lib/docker/overlay2相关的知识,希望对你有一定的参考价值。

最近在centos7.1使用docker运行redis镜像,出现下面的错误:

/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/
See '/usr/bin/docker-current run --help'.
在网上搜索一番后,一个可行的方案如下(改变storage driver类型, 禁用selinux): 停止docker服务
systemctl stop docker
清理镜像
rm -rf /var/lib/docker
修改存储类型,把空的DOCKER_STORAGE_OPTIONS参数改为overlay:
vim /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS="--storage-driver overlay"
禁用selinux
vi /etc/sysconfig/docker
去掉option的–selinux-enabled,启动docker就可以了
systemctl start docker

以上是关于解决 error creating overlay mount to /var/lib/docker/overlay2的主要内容,如果未能解决你的问题,请参考以下文章

解决 error creating overlay mount to /var/lib/docker/overlay2

解决docker启动错误 error creating overlay mount to /var/lib/docker/overlay2

Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2

docker容器启动报错:Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/dd

docker error creating overlay mount

docker容器启动报错:Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/dd