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

时间:2023-03-10 02:27:28
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

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

lvdisplay
docker info
lsblk
pvcreate /dev/vdb1
vgcreate docker /dev/vdb1
vgdisplay docker
lvcreate --wipesignatures y -n thinpool docker -l 95%VG
lvcreate --wipesignatures y -n thinpoolmeta docker -l 1%VG
lvconvert -y --zero n -c 512K --thinpool docker/thinpool --poolmetadata docker/thinpoolmeta
vi /etc/lvm/profile/docker-thinpool.profile
lvs -o+seg_monitor
vim /etc/docker/daemon.json
rm -rf /var/lib/docker/*
systemctl daemon-reload
systemctl start docker
docker ps

 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