【问题标题】:Docker, Vagrant, CentOS 7, cannot startDocker,Vagrant,CentOS 7,无法启动
【发布时间】:2015-08-03 04:31:25
【问题描述】:

/var/log/messages 日志在下面

Aug  3 04:27:54 localhost lvm[3169]: Thin centos-docker--pool is now 100% full.
Aug  3 04:27:54 localhost lvm[3169]: Insufficient free space: 1 extents needed, but only 0 available
Aug  3 04:27:54 localhost lvm[3169]: Failed to extend thin centos-docker--pool.

systemctl状态日志如下:

docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
   Active: failed (Result: exit-code) since Mon 2015-08-03 04:22:52 UTC; 6min ago
     Docs: http://docs.docker.com
  Process: 7577 ExecStart=/usr/bin/docker -d $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)
 Main PID: 7577 (code=exited, status=1/FAILURE)

Aug 03 04:22:52 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Aug 03 04:22:52 localhost.localdomain docker[7577]: time="2015-08-03T04:22:52Z" level=info msg="+job serveapi(unix:///var/run/docker.sock)"
Aug 03 04:22:52 localhost.localdomain docker[7577]: time="2015-08-03T04:22:52Z" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Aug 03 04:22:52 localhost.localdomain docker[7577]: time="2015-08-03T04:22:52Z" level=fatal msg="Shutting down daemon due to errors: error intializing graphdriver: Unable to take ownership of... data blocks"
Aug 03 04:22:52 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Aug 03 04:22:52 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Aug 03 04:22:52 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

这是lsblk 结果:

[root@localhost vagrant]# lsblk
NAME                          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                             8:0    0  9.9G  0 disk 
├─sda1                          8:1    0  500M  0 part /boot
└─sda2                          8:2    0  9.4G  0 part 
  ├─centos-root               253:0    0  8.4G  0 lvm  /
  ├─centos-swap               253:1    0 1016M  0 lvm  [SWAP]
  ├─centos-docker--pool_tmeta 253:2    0   12M  0 lvm  
  │ └─centos-docker--pool     253:4    0   16M  0 lvm  
  └─centos-docker--pool_tdata 253:3    0   16M  0 lvm  
    └─centos-docker--pool     253:4    0   16M  0 lvm  
sr0                            11:0    1 1024M  0 rom  
sr1                            11:1    1 1024M  0 rom  

【问题讨论】:

  • 我找到了解决方案,安装后重新安装docker就可以了。 stackoverflow.com/questions/29438648/…
  • 我遇到了精简池的元数据池空间不足的问题。你在使用 dm.thinpooldev 设置吗?另外,您的精简池是如何创建的? sudo docker info 的结果是什么 sudo lvs 的结果是什么
  • 没有。上面的问题是因为我的lvm logic volume太小了

标签: docker vagrant centos7


【解决方案1】:

这个问题可能是lvm 空间不够用。只能分配16MB
解决办法是调整centos-docker-poollogic volume的大小

【讨论】:

    猜你喜欢
    • 2017-06-23
    • 2016-11-12
    • 1970-01-01
    • 2015-06-08
    • 1970-01-01
    • 2014-09-09
    • 2016-05-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多