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

本文涉及的产品
容器服务 Serverless 版 ACK Serverless,317元额度 多规格
容器镜像服务 ACR,镜像仓库100个 不限时长
容器服务 Serverless 版 ACK Serverless,952元额度 多规格
简介: 27 15:15:34 localhost docker-storage-setup: Volume group "centos" has insufficient free space (0 extents): 66 required.
 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

 

目录
相关文章
|
11天前
|
存储 Docker 容器
docker中挂载数据卷到容器
【10月更文挑战第12天】
35 5
|
5天前
|
Web App开发 iOS开发 Docker
Docker 容器的日志
【10月更文挑战第31天】
16 5
|
4天前
|
存储 Kubernetes C++
Kubernetes VS Docker Swarm:哪个容器编排工具更适合你?
随着容器技术的快速发展,容器编排工具成为了现代软件开发和运维的重要环节。在众多容器编排工具中,Kubernetes和Docker Swarm无疑是最受欢迎的两个。本文将从技术特性、易用性和社区支持三个方面,对Kubernetes和Docker Swarm进行比较,以帮助您选择更适合您需求的容器编排工具。
20 3
|
5天前
|
存储 缓存 Docker
docker中挂载数据卷到容器
【10月更文挑战第16天】
15 2
|
7天前
|
存储 关系型数据库 MySQL
|
8天前
|
存储 Docker 容器
docker中挂载数据卷到容器
【10月更文挑战第13天】
15 2
|
8天前
|
前端开发 JavaScript Docker
拿下奇怪的前端报错(五):SyntaxError: Unexpected token ‘??=‘或‘xxx‘ - 基于容器搭建开发环境或许是更好的选择
在前端开发中,同时维护多个项目时可能会遇到不同Node.js版本的问题。低版本Node.js可能导致依赖无法安装或启动失败,而高版本Node.js则可能引起第三方库的兼容性问题。推荐使用Docker搭建独立的开发环境,以避免版本不一致带来的困扰。
264 1
|
9天前
|
运维 监控 数据可视化
Docker容器可视化管理工具 - WGCLOUD基础介绍
WGCLOUD是新一代运维监测平台,它可以监控Docker容器的各种性能数据,比如内存,cpu,Image,运行时间,运行状态,端口映射等信息
|
9天前
|
Ubuntu Shell 开发者
Docker入门:轻松开始容器化之旅
【10月更文挑战第17天】Docker 是一种开源的应用容器引擎,它让开发者能够“一次构建、到处运行”。Docker 通过容器化技术将应用程序及其依赖打包在一起,从而确保应用在任何环境中都能一致地运行。本文将为新手用户提供一个全面的Docker入门指南,包括基本概念、优势、安装配置以及如何创建和管理容器。
32 2
|
12天前
|
存储 应用服务中间件 云计算
深入解析:云计算中的容器化技术——Docker实战指南
【10月更文挑战第14天】深入解析:云计算中的容器化技术——Docker实战指南
36 1

热门文章

最新文章