容器启动异常 devicemapper: Error running deviceCreate (CreateSnapDeviceRaw) dm_task_run failed

异常:Cannot create container for service xmq: devicemapper: Error running deviceCreate (CreateSnapDeviceRaw) dm_task_run failed

解决方法:

∘ systemctl stop docker
∘ thin_check --clear-needs-check-flag /var/lib/docker/devicemapper/devicemapper/metadata
∘ thin_check /var/lib/docker/devicemapper/devicemapper/metadata
∘ systemctl start docker

执行记录:

systemctl stop docker

[root@VM-0-2-centos ~]# thin_check --clear-needs-check-flag /var/lib/docker/devicemapper/devicemapper/metadata
examining superblock
TRANSACTION_ID=78
METADATA_FREE_BLOCKS=524287
examining devices tree
examining mapping tree
checking space map counts
[root@VM-0-2-centos ~]# 
[root@VM-0-2-centos ~]# 
[root@VM-0-2-centos ~]# thin_check /var/lib/docker/devicemapper/devicemapper/metadata
examining superblock
TRANSACTION_ID=78
METADATA_FREE_BLOCKS=524287
examining devices tree
examining mapping tree
checking space map counts
[root@VM-0-2-centos ~]# 
[root@VM-0-2-centos ~]# 

systemctl statr docker

参考:https://github.com/docker/for-linux/issues/46
[root@VM-0-2-centos ~]# systemctl start docker

你可能感兴趣的:(容器启动异常 devicemapper: Error running deviceCreate (CreateSnapDeviceRaw) dm_task_run failed)