Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

  • A+
所属分类:Linux

docker无法启动

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

解决方法

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

删除以上逻辑卷:

lvremove /dev/docker/thinpool

lvremove /dev/docker/thinpoolmeta

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

查看机器挂载明细

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

  1. lvdisplay
  2. docker info
  3. lsblk
  4. pvcreate /dev/vdb1
  5. vgcreate docker /dev/vdb1
  6. vgdisplay docker
  7. lvcreate --wipesignatures y -n thinpool docker -l 95%VG
  8. lvcreate --wipesignatures y -n thinpoolmeta docker -l 1%VG
  9. lvconvert -y --zero n -c 512K --thinpool docker/thinpool --poolmetadata docker/thinpoolmeta
  10. vi /etc/lvm/profile/docker-thinpool.profile
  11. lvs -o+seg_monitor
  12. vim /etc/docker/daemon.json
  13. rm -rf /var/lib/docker/*
  14. systemctl daemon-reload
  15. systemctl start docker
  16. docker ps

pvcreate /dev/vdb1

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

vi /etc/lvm/profile/docker-thinpool.profile

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

vim /etc/docker/daemon.json

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

Error starting daemon: error initializing graphdriver: devmapper: Device docker-thinpool is not a thin pool

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: