Moving `/var/lib/docker` to a new disk broke everything: `Error starting daemon: ... mkdir ... permission denied`.
AdvancedTroubleshootingStorage, volumes and disk space
Answer
Likely causes → Copy without preserving ownership/xattrs/SELinux labels, or wrong data-root path.
Diagnose → journalctl -u docker; ls -ld /newpath; getfattr.
Fix → systemctl stop docker; rsync -aHAXS /var/lib/docker/ /data/docker/; set "data-root": "/data/docker"; restart.
Prevent → Use rsync -aHAXS and test on a staging host.
More on Storage, volumes and disk space
`no space left on device` while pulling an image or starting a container.Beginner`df` shows free space but Docker says no space: inodes at 100%.Advanced`/var/lib/docker/containers/<id>/<id>-json.log` is 50 GB.Beginner`docker system prune` did not free much although `docker system df` shows large "Reclaimable".IntermediateVolume data disappeared after `docker compose down -v` or `docker volume prune`.IntermediateData is not persisted: after container recreate the database is empty.Intermediate