docker run --mount type=bind,source=$(pwd),target=/app myimage

Category: Docker

docker run --mount type=bind,source=$(pwd),target=/app myimage

Bind-mount using explicit --mount syntax (more readable)

Bind-mounts using the explicit --mount syntax — more verbose but clearer about what's happening.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.