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

环境:centos7.1

docker run -t -i centos /bin/bash

运行上面的命令开启容器时报错:

/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/8c4e909f7bd85dd94ac3483b209643dd02b4e45adfc0b8ee141a95214903a5c8/merged: invalid argument.
See ‘/usr/bin/docker-current run --help‘.

这个是因为用的overlay2文件系统,而系统默认只能识别overlay文件系统

所以我们就要更新文件系统了

#systemctl stop docker      //停掉docker服务  

#rm -rf /var/lib/docker     //注意会清掉docker images的镜像  

#vi /etc/sysconfig/docker-storage       //将文件里的overlay2改成overlay即可  

例:DOCKER_STORAGE_OPTIONS="--storage-driver overlay "

#vi /etc/sysconfig/docker         //去掉option后面的--selinux-enabled  

然后启动docker即可:systemctl start docker

再运行,成功!

原文地址:https://www.cnblogs.com/areyouready/p/9028487.html

时间: 2024-10-07 04:31:21

Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2的相关文章

解决docker启动错误 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/65f3c109fb903539820f84856d2725af784f2f03f95b1f0214e34184e4d61ff7-init/merged: invalid argument. Se

docker启动报错解决及分析(Cannot create container for service *******: cannot mount volume over existing file, file exists /var/lib/docker/overlay2/)

现象: Cannot create container for service *******: cannot mount volume over existing file, file exists /var/lib/docker/overlay2/************/merged/etc/php/7.0/fpm/php.ini 之前的也出现过这种情况,没记录,时间长了也忘了怎么解决了 记录一下,传播一下 我在用docker-compose启动的时候,报这个错 说直白了,原因就在于我们启

docker error creating overlay mount

最近在centos7.4使用docker运行镜像,出现下面的错误: /var/lib/docker/overlay2/65f3c109fb903539820f84856d2725af784f2f03f95b1f0214e34184e4d61ff7-init/merged: invalid argument. 以下为Jenkins打包docker镜像出现的报错 error creating overlay mount to /var/lib/docker/overlay2/0312d0af7996

window7下docker toolbox 启用数据卷报错: Error response from daemon: invalid mode:

场景:希望把d:\dockerShare文件夹作为数据卷 ,和docker中的centos镜像生成的容器关联. 原来的命令: docker run -d -it --name=edc-centos7 -v edc-centos7-vol:D:\dockershare centos:latest 报错: d:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: invalid mode: \dockershare

docker端口映射或启动容器时报错Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen

现象: [[email protected] ~]# docker run -d -p 9000:80 centos:httpd /bin/sh -c /usr/local/bin/start.shd5b2bd5a7bc4895a973fe61efd051847047d26385f65c278aaa09e4fa31c4d76docker: Error response from daemon: driver failed programming external connectivity on

docker export import后,导入镜像,启动时的错误,Error response from daemon: No command specified

Docker的流行与它对容器的易分享和易移植密不可分,用户不仅可以把容器提交到公共服务器上,还可以把容器导出到本地文件系统中.同样,我们也可以把导出的容器重新导入到Docker运行环境中.Docker的容器导入导出分别用import和export命令完成. 1.导出容器export 注意:export导出的是容器,不是镜像. [plain] view plain copy docker export <CONTAINER ID > > my_container.tar docker ex

docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley

1. docker 启动image错误 docker: Error response from daemon: driver failed programming external connectivity on endpoint jolly_shockley (957a1271cd0ae4f9f28163b7cdf5c17d6110fcd6ccd2ca79f2cf0ab8c67dfd52): (iptables failed: iptables --wait -t nat -A DOCKER

docker启动时报错Error response from daemon: driver failed programming external connectivity on endpoint *

公司服务器由于断电重启,部署在docker服务上的一些web服务需要重新开启容器, [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d77c2c6b3650 chandao:latest "/app/docker-entrypo…" 7 days ago Up About an hour 0.0.0.0:7075->80/tcp chandao 当重新开启容器的

Error response from daemon: conflict: unable to remove repository reference 解决方案

由于前一章演示用的镜像没什么用准备删除 docker image rm hello-world:latest Error response from daemon: conflict: unable to remove repository reference "hello-world:latest" (must force) - container 32a5e6dd8f62 is using its referenced image fce289e99eb9 来自守护进程的错误响应: