Docker · Concept
Bind mount
A bind mount shares a file or directory from the Docker host with a container. It is writable by default and is useful when container and host need to read or change the same files.
Last updated
Syntax
docker run --mount type=bind,src=<host-path>,dst=<container-path>[,readonly][,bind-recursive=<value>]
docker run -v <host-path>:<container-path>[:opts]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
VolumesFilesystem mountsdocker runBind propagationRead-only bind mount