Interview Prep/Docker/Storage, volumes and disk space

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.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space