Docker is failing to start with the following error message.
Error starting daemon: error initializing graphdriver: devicemapper: Non existing device docker--vg-docker--pool
- Platform9 Managed Kubernetes - All Versions
The prerequisite logical volume for Docker was not named correctly as per the storage options in /etc/docker/daemon.json.
Note: The following scenarios assume that the logical volume name is intended to be docker-pool, as per the error message.
- Rename the logical volume.
# lvrename docker-vg/<lv-name> docker-vg/docker-pool
- Modify /etc/docker/daemon.json to match the path of the logical volume that was created.
"storage-opts": [ "dm.fs=xfs", "dm.thinpooldev=/dev/mapper/docker--vg-docker--pool", "dm.use_deferred_removal=true" ]