Docker 码头工人,流浪汉,CentOS 7,无法启动

Docker 码头工人,流浪汉,CentOS 7,无法启动,docker,vagrant,centos7,Docker,Vagrant,Centos7,下面是/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

下面是
/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.
系统CTL状态日志如下所示:

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  

这个问题可能是因为没有足够的
lvm
空间来使用。它只能被分配
16MB


解决方案是调整
centos docker池的
逻辑卷的大小

我找到了解决方案,安装后,现在可以重新安装docker了。我遇到了精简池的元数据池空间不足的问题。您正在使用dm.thinpooldev设置吗?另外,您的精简池是如何创建的?sudo docker info的结果是什么sudo lvsNo的结果是什么。上面的问题是由于我的
lvm逻辑卷
太小