Skip to content
masterclass Buddy

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.

Subscribe
  • Volumes
  • Filesystem mounts
  • docker run
  • Bind propagation
  • Read-only bind mount

Source: Bind mounts. Checked 2026-11-03.