Docker Community Forums

Share and learn in the Docker community.

Docker won't start when trying to use a thinpool that had been used in a previous install


(Ocofaigh) #1

Scenario:

  1. Install Docker 17.03
  2. Configure direct-lvm mode manually as per https://docs.docker.com/storage/storagedriver/device-mapper-driver/#configure-direct-lvm-mode-for-production
  3. Start Docker - Docker is working fine at this point
  4. Uninstall Docker
  5. Install Docker again and configure direct-lvm mode manually using the same thinpool logical volume that was used during the first docker install.

Error: Unable to take ownership of thin-pool (docker-thinpool) that already has used data blocks

Question: Is there anyway that the thinpool logical volume can be reused without removing it and recreating it? Can the “used data blocks” be cleared some how?