首页 » 翻译 » Docker » 正文

space issue on docker devmapper and CentOS7

报错信息:

devmapper: Thin Pool has 82984 free data blocks which is less than minimum required 163840 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior

 

解决方案:

Just run these three. No need to remove RUNNING containers.

  1. Cleanup exited processes:
  2. Cleanup dangling volumes:
  3. Cleanup dangling images:

本文共 4 个回复

  • link.ji 2017/12/05 15:01

    大哥能解释下原理么?服务器重启之后,我启容器报了这个错,然后执行你命令之后,挂了的容器全被删了。。。 :mad: :mad: :mad: :mad:

    • Zhiming Zhang

      Zhiming Zhang 博主 2017/12/05 15:47

      @ link.ji 清理空间阿.... 你先跑一下docker ps -q -f status=exited 看看出来什么,然后再查查docker rm 是是干什么的就知道了

  • 求教 2018/02/24 18:27

    大神,运行完还是不行,Step 3 : COPY deploys /opt/deploys devmapper: Thin Pool has 160874 free data blocks which is less than minimum required 163840 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior Build step 'Execute shell' marked build as failure Finished: FAILURE

  • 求教 2018/02/24 18:28

    [root@jingle-test-java02 ~]# docker info Containers: 3 Running: 3 Paused: 0 Stopped: 0 Images: 32 Server Version: 1.12.6 Storage Driver: devicemapper Pool Name: docker-253:1-2023518-pool Pool Blocksize: 65.54 kB Base Device Size: 10.74 GB Backing Filesystem: xfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 2.622 GB Data Space Total: 107.4 GB Data Space Available: 28.43 GB Metadata Space Used: 5.026 MB Metadata Space Total: 2.147 GB Metadata Space Available: 2.142 GB Thin Pool Minimum Free Space: 10.74 GB Udev Sync Supported: true Deferred Removal Enabled: false Deferred Deletion Enabled: false Deferred Deleted Device Count: 0 Data loop file: /var/lib/docker/devicemapper/devicemapper/data WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata Library Version: 1.02.135-RHEL7 (2016-11-16) Logging Driver: journald Cgroup Driver: systemd Plugins: Volume: local Network: null bridge host overlay Swarm: inactive Runtimes: docker-runc runc Default Runtime: docker-runc Security Options: seccomp Kernel Version: 3.10.0-514.26.2.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 Number of Docker Hooks: 2 CPUs: 1 Total Memory: 7.64 GiB Name: jingle-test-java02 ID: S5LY:TM5J:IL2S:7YCU:JPPD:NEV4:K4Y4:CI4G:GSNC:G77Z:4MEP:72OR Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Insecure Registries: 10.30.124.231:5000 106.15.60.5:5000 127.0.0.0/8 Registries: docker.io (secure)

发表评论