Interview Prep/Docker/Storage, volumes and disk space

`chown: changing ownership of '/var/lib/mysql/...': Operation not permitted` at container start.

IntermediateTroubleshootingStorage, volumes and disk space
Answer

Likely causes → Bind mount on NFS with root_squash, a Windows/macOS file share, or rootless user namespaces where chown to a mapped UID is not allowed.

Diagnose → mount | grep <path>; docker exec c id.

Fix → Use a named volume, fix export options (no_root_squash or proper UID), or map user: to the owner.

Prevent → Avoid databases on network/shared filesystems.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space