Interview Prep/Docker/Volumes & Bind Mounts

Where is a named volume physically stored and can you edit it directly?

IntermediateConceptVolumes & Bind Mounts
Answer

docker volume inspect pgdata shows Mountpoint like /var/lib/docker/volumes/pgdata/_data (inside the VM on Docker Desktop). Root on a Linux host can read it, but treat it as Docker-managed; use containers to modify data to keep ownership and SELinux labels correct.

All Docker questions Roadmap: Docker & containers

More on Volumes & Bind Mounts