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

 

时间: 2024-11-10 10:49:10

docker 报错Failed to start Docker Storage Setup. 的处理基本都是容器满了的相关文章

打开百度地图报错 Failed to open database &amp;amp;#39;/storage/sdcard1/baidu/tempdata/ls.db&amp;amp;#39;

问题描述 打开百度地图报错 Failed to open database '/storage/sdcard1/baidu/tempdata/ls.db' 第一次安装app 打开百度地图页面可以显示,以后每次打开都无法显示地图.强制停止app再一次打开app第一次百度地图页面可以显示,以后每次打开都无法显示地图,报错:Failed to open database '/storage/sdcard1/baidu/tempdata/ls.db'

centos 7安装docker报错,

问题描述 centos 7安装docker报错, Transaction check error: file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64 file /usr/sbin/blkdeactiv

docker 报错整理

一.docker images 上传到 registry 错误 错误信息: (1).无法登录到仓库 (2).ping 尝试失败与错误 [root@docker-100 ~]# docker push 10.1.0.100:5000/registry The push refers to a repository [10.1.0.100:5000/registry] (len: 1) unable to ping registry endpoint https://10.1.0.100:5000/

yum安装Docker报错file /usr/lib/systemd/system

前该报错也遇到过,没有记录到网站,今天记录下. 今天闲着没事从一个centos 7.0的linux虚拟机上也安装了一个Docker测试耍耍,结果报错如下: Transaction check error:   file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package

Android Studio 报错failed to create jvm error code -4的解决方法_Android

安装完 Android Studio 后启动,却报错如下: 复制代码 代码如下: failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下. 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe.vmoptions,修改代码: 复制代码 代码如下: -Xmx512m 为 -Xmx256m 保存后应即可正常打开了.

Swift 真机调试,启动失败报错failed to get the task for process解决

问题描述: 今天把手机接到电脑上,打算通过 Xcode 进行真机调试.编译运行后,直接启动报错.手机白屏,Xcode 这边显示报错信息如下: Could not launch "航歌" process launch failed: failed to get the task for process 9794   而使用模拟器运行是没问题的. 原因分析: 这是证书问题.真机调试 project 和 targets 的证书都必须是开发证书,我之前使用发布证书发布程序后忘记改回来了. 问题

Android Studio 报错failed to create jvm error code -4的解决方法

安装完 Android Studio 后启动,却报错如下: 复制代码 代码如下:failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下. 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe.vmoptions,修改代码: 复制代码 代码如下:-Xmx512m 为 -Xmx256m 保存后应即可正常打开了.

关于在esx平台windows2008R2虚拟机里部署docker报错的问题

  我在esx4的环境下安装windows2008 R2 ,在2008 R2 里面安装的docker windows安装环境,,每次都报上面的问题,试了esx平台和vmware平台,都不行大神给解决一下.

SVN在64位系统报错 Failed to load JavaHL Library.

Failed to load JavaHL Library. These are the errors that were encountered: 从网上查看了一下解决办法, 1.选择window->preferences->Team->SVN->SVN接口 2.选择SVNKit (Pure Java) xxxxxx 如下图所示 重启之后就不会再报错了,这是经过实践的!