docker 报错Failed to start Docker Storage Setup. 的处理基本都是容器满了
27 15:15:34 localhost docker-storage-setup: Volume group "centos" has insufficient free space (0 extents): 66 required. Apr 27 15:15:34 localhost systemd: docker-storage-setup.service: main process exited, code=exited, status=5/NOTINSTALLED Apr 27 15:15:34 localhost systemd: Failed to start Docker Storage Setup. Apr 27 15:15:34 localhost systemd: Unit docker-storage-setup.service entered failed state. Apr 27 15:15:34 localhost systemd: docker-storage-setup.service failed. Apr 27 15:15:34 localhost systemd: Starting Docker Application Container Engine... Apr 27 15:15:34 localhost journal: Forwarding stdin to journald using Priority Informational and tag docker Apr 27 15:15:35 localhost kernel: loop: module loaded Apr 27 15:15:38 localhost journal: time="2016-04-27T15:15:38.376521502+08:00" level=warning msg="Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section." Apr 27 15:15:38 localhost systemd: Device dev-disk-by\x2duuid-81caf5ff\x2dd883\x2d45a2\x2db20c\x2d31a41d07ad2c.device appeared twice with different sysfs paths /sys/devices/virtual/block/loop0 and /sys/devices/virtual/block/dm-4 Apr 27 15:15:38 localhost journal: time="2016-04-27T15:15:38.571170482+08:00" level=info msg="[graphdriver] using prior storage driver \"devicemapper\"" Apr 27 15:15:38 localhost journal: time="2016-04-27T15:15:38.572029145+08:00" level=warning msg="Docker could not enable SELinux on the host system" Apr 27 15:15:46 localhost kernel: Bridge firewalling registered Apr 27 15:15:46 localhost journal: time="2016-04-27T15:15:46.069579911+08:00" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found.\ninsmod /lib/modules/3.10.0-229.4.2.el7.x86_64/kernel/net/llc/llc.ko \ninsmod /lib/modules/3.10.0-229.4.2.el7.x86_64/kernel/net/802/stp.ko \ninsmod /lib/modules/3.10.0-229.4.2.el7.x86_64/kernel/net/bridge/bridge.ko \n, error: exit status 1" Apr 27 15:15:46 localhost kernel: nf_conntrack version 0.5.0 (16384 buckets, 65536 max) Apr 27 15:15:46 localhost journal: time="2016-04-27T15:15:46.118260335+08:00" level=info msg="Firewalld running: false" Apr 27 15:15:46 localhost journal: time="2016-04-27T15:15:46.366809062+08:00" level=fatal msg="Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpoints" Apr 27 15:15:46 localhost systemd: Started Docker Application Container Engine. Apr 27 15:16:01 localhost systemd: Started Session 9 of user root. Apr 27 15:16:01 localhost systemd: Starting Session 9 of user root. Apr 27 15:17:01 localhost systemd: Started Session 10 of user root. Apr 27 15:17:01 localhost systemd: Starting Session 10 of user root. Apr 27 15:18:01 localhost systemd: Started Session 11 of user root. Apr 27 15:18:01 localhost systemd: Starting Session 11 of user root. Apr 27 15:19:01 localhost systemd: Started Session 12 of user root. Apr 27 15:19:01 localhost systemd: Starting Session 12 of user root. Apr 27 15:20:01 localhost systemd: Started Session 13 of user root. Apr 27 15:20:01 localhost systemd: Starting Session 13 of user root. Apr 27 15:20:18 localhost systemd: Starting Docker Storage Setup... Apr 27 15:20:18 localhost docker-storage-setup: Rounding up size to full physical extent 264.00 MiB Apr 27 15:20:18 localhost docker-storage-setup: Volume group "centos" has insufficient free space (0 extents): 66 required. Apr 27 15:20:18 localhost systemd: docker-storage-setup.service: main process exited, code=exited, status=5/NOTINSTALLED Apr 27 15:20:18 localhost systemd: Failed to start Docker Storage Setup. Apr 27 15:20:18 localhost systemd: Unit docker-storage-setup.service entered failed state. Apr 27 15:20:18 localhost systemd: docker-storage-setup.service failed.
OPTIONS='--selinux-enabled=false --graph=/home/lib/docker' 解决,但是没有以前的镜像文件了
------------------------------------------------------------------------------
cd /var/lib sudo cp -rf docker docker.bak sudo cp -rf docker /<my_new_location>/ sudo ln -s /<my_new_location>/docker docker sudo /etc/init.d/docker start
5、docker无法启动,原因有可能磁盘不够,或者没有解析到。
Nov 19 20:29:36 centos7 systemd: Starting Docker Storage Setup...
Nov 19 20:29:36 centos7 docker-storage-setup: Rounding up size to full physical extent 32.00 MiB
Nov 19 20:29:36 centos7 docker-storage-setup: Volume group "centos_centos7" has insufficient free space (0 extents): 8 required.
Nov 19 20:29:36 centos7 systemd: docker-storage-setup.service: main process exited, code=exited, status=5/NOTINSSTALLED
Nov 19 20:29:36 centos7 systemd: Failed to start Docker Storage Setup.
Nov 19 20:29:36 centos7 systemd: Unit docker-storage-setup.service entered failed state.
Nov 19 20:29:36 centos7 systemd: Starting Docker Application Container Engine...
Nov 19 20:29:36 centos7 docker: time="2015-11-19T20:29:36.538243264+08:00" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Nov 19 20:29:36 centos7 docker: time="2015-11-19T20:29:36.540394247+08:00" level=error msg="WARNING: No --storage-opt dm.thinpooldev specified, using loopback; this configuration is strongly discouraged for production use"
解决办法:
增加vg容量,重启机器试试
不行就删除 /usr/lib/systemd/system/docker.service 里的DOCKER_STORAGE_OPTIONS
systemctl daemon-reload
systemctl restart docker.service
6、还是无法启动docker,原因可能为docker没有识别到正常的thinpooldev,需要手动指定
Error starting daemon: error initializing graphdriver: EOF
/usr/bin/docker daemon --selinux-enabled --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/centos_centos7-docker--pool-tpool
解决办法:
https://gist.github.com/joshix/ec1673f2791bf5cb352f#file-thin-pool-md
dmsetup status
找到tpool结尾的那行,比如centos_centos7-docker--pool-tpool
修改文件
vim /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS=--storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/centos_centos7-docker--pool-tpool
重启
systemctl daemon-reload
systemctl restart docker.service

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
这个颜值逆天的姑娘,居然是一枚程序员!(多图慎入,内有彩蛋)
在2016年阿里云年会上,一位清纯美丽、身材高挑、健康阳光的“维秘天使”闪亮登场,令现场的阿里云汉子们按耐不住心中的激荡,惊呼“女神”驾到!如今随着网络的传播,这位阿里云女神已经在IT圈掀起了小小的波澜,不仅是阿里人,很多技术小伙伴都加入了她的粉丝圈,纷纷询问,这位女神到底是谁? 今天,我们就带你去了解一下这位阿里云集智慧美貌于一身的女神,云栖社区首批女技术博主——阿里云资深研发工程师“清宵(花名)”,看一看她是如何将繁重的工作与生活完美的平衡,让自己不断快乐的成长! 阿里云年会上的“清宵”惊艳全场 健康秘诀 身为阿里技术人,对工作充满热情与严谨的态度非常重要。清宵作为“飞天”技术部的资深开发工程师,负责阿里云云存储的功能开发与稳定性,每天要面对数万行代码,所以保持健康的身体与好精神是非常重要的事情,而清宵的不二法宝就是——清晨慢跑。 杭州的清晨,雨露伴着晨曦的阳光,她的一天便由此开始。呼吸着清新而又湿润的空气,清宵会围绕着居住的小区慢跑3-5公里。在慢跑的过程中,她会让自己尽量放松下来,享受大自然带来的健康能量。 “如果你跑累了,不要马上停下来,说服自己再跑几十米,这是磨练个人意志力...
- 下一篇
centos7安装docker并设置开机启动
版本要求:查看内核版本,需大于3.10 [root@localhost ~]# uname -r 3.10.0-327.10.1.el7.x86_64 更新内核:如果是生产机器务必慎重更新内核,避免出现不必要的问题。 sudo yum update 安装docker [root@localhost ~]# curl -sSL https://get.docker.com/ | sh + sh -c 'sleep 3; yum -y -q install docker-engine' Delta RPMs disabled because /usr/bin/applydeltarpm not installed. warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.10.3-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY Public key for docker-...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- CentOS7设置SWAP分区,小内存服务器的救世主
- Docker使用Oracle官方镜像安装(12C,18C,19C)
- Docker安装Oracle12C,快速搭建Oracle学习环境
- SpringBoot2全家桶,快速入门学习开发网站教程
- CentOS7安装Docker,走上虚拟化容器引擎之路
- CentOS7编译安装Gcc9.2.0,解决mysql等软件编译问题
- Docker快速安装Oracle11G,搭建oracle11g学习环境
- CentOS7编译安装Cmake3.16.3,解决mysql等软件编译问题
- Eclipse初始化配置,告别卡顿、闪退、编译时间过长
- Jdk安装(Linux,MacOS,Windows),包含三大操作系统的最全安装