Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Error starting daemon: error initializing graphdriver: devmapper: Device %device% is not a thin pool #21304
Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:
PV=/dev/xvdf VG=docker LV=pool0 pvcreate $PV vgcreate $VG $PV lvcreate -y -l 5%VG -n $LV\meta $VG lvcreate -y -l 90%VG -n $LV $VG lvconvert -y --zero n --thinpool $VG/$LV --poolmetadata $VG/$LV\meta lvs -a LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert [lvol0_pmspare] docker ewi------- 2.50g pool0 docker twi-a-t--- 45.00g 0.00 0.01 [pool0_tdata] docker Twi-ao---- 45.00g [pool0_tmeta] docker ewi-ao---- 2.50g dmsetup status docker-pool0-tpool: 0 94363648 thin-pool 0 94/654336 0/737216 - rw no_discard_passdown queue_if_no_space docker-pool0_tdata: 0 94363648 linear docker-pool0_tmeta: 0 5234688 linear docker-pool0: 0 94363648 linear
Describe the results you received:
systemctl stop docker ; rm -rf /var/lib/docker ; /usr/bin/docker daemon --debug --storage-driver 'devicemapper' --storage-opt 'dm.thinpooldev=/dev/mapper/docker-pool0' --storage-opt 'dm.fs=xfs' --storage-opt 'dm.use_deferred_removal=true' DEBU docker group found. gid: 999 DEBU Server created for HTTP on unix (/var/run/docker.sock) DEBU Using default logging driver json-file DEBU [graphdriver] trying provided driver "devicemapper" DEBU devicemapper: driver version is 4.27.0 DEBU devmapper: Deferred removal support enabled. DEBU devmapper: Generated prefix: docker-202:1-395273 DEBU devmapper: Checking for existence of the pool docker-pool0 DEBU Cleaning up old shm/mqueue mounts: start. FATA Error starting daemon: error initializing graphdriver: devmapper: Device docker-pool0 is not a thin pool
Describe the results you expected:
No fatal error.
Additional information you deem important (e.g. issue happens only occasionally):
Problem does not occur if you use deprecated options:
systemctl stop docker ; rm -rf /var/lib/docker ; /usr/bin/docker daemon --debug --storage-driver 'devicemapper' --storage-opt 'dm.datadev=/dev/mapper/docker-pool0' --storage-opt 'dm.metadatadev=/dev/mapper/docker-pool0' --storage-opt 'dm.fs=xfs' --storage-opt 'dm.use_deferred_removal=true'
referenced this issue
Mar 18, 2016
@svvac some changes were made to the documentation recently, but perhaps you could check if there's incorrect information in there? https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/
The Markdown file used to generate that page can be found in this repository; https://github.com/docker/docker/blob/master/docs/userguide/storagedriver/device-mapper-driver.md
@thaJeztah I'd rather not use aufs, Device Mapper (https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/) is the recommended storage driver for Docker.
I don't think this should be fixed in the documentation, using the -tpool device is just a workaround. It should be fixed in Docker. The documentation could mention this as a workaround.
referenced this issue
Dec 8, 2016
This was referenced
Feb 1, 2017
Device mapper is not the recommended storage driver for Docker, and that page does not say that, it says it is the default for RHEL and derived distros, and supported elsewhere. In general it is not recommended. On 3 Jul 2016 00:33, "Luca Gibelli" <email@example.com> wrote: @thaJeztah <https://github.com/thaJeztah> I'd rather not use aufs, Device Mapper (https://docs.docker.com/engine/userguide/ storagedriver/device-mapper-driver/) is the recommended storage driver for Docker. I don't think this should be *fixed* in the documentation, using the -tpool device is just a workaround. It should be fixed in Docker. The documentation could mention this as a workaround. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#21304 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe/AAdcPP6ULszQZS38-oWObnV2Ejfe-M4zks5qR2XAgaJpZM4HzNGO> .
This was referenced
Sep 16, 2017
Had no problem with docker 1.12 engine. But could not install docker-CE working.
I am getting this with