Skip to main content

Move docker on another disk on OMV

  1. Stop the docker daemon (and all containers with it) systemctl stop docker
  2. rsync -aHv /var/lib/docker /srv/dev-disk-by-id-usb-WDC_WD10_EARS-00Y5B1_152D00539000-0-0-part2/omv/docker
    Copy all old docker contents to new location keeping permissions and possible hard links and be verbose about what it is doing
  3. Uninstall docker
  4. change the docker location in the OMV UI
  5. install docker with the path changed and saved.
  6. SAVE
  7. Restart the docker daemon in the OMV UI (will restart containers as well)
  8. Check if all your containers are running as expected
  9. remove /var/lib/docker