Interview Prep/Docker/Volumes & Bind Mounts

What is mount propagation (`rprivate`, `rshared`) on bind mounts?

AdvancedConceptVolumes & Bind Mounts
Answer

It controls whether mounts created under a bind-mounted directory propagate between host and container. Docker defaults to rprivate (none). rslave lets host mounts appear in the container; rshared is two-way and needs the host mount to be shared. Needed by tools like CSI node drivers or rclone mount containers.

docker run -v /mnt/data:/data:rshared ...
All Docker questions Roadmap: Docker & containers

More on Volumes & Bind Mounts