docker run -v $(pwd):/app myimage

Category: Docker

docker run -v $(pwd):/app myimage

Bind-mount the current directory into the container at /app

Bind-mounts the current directory into the container at /app. Changes on the host are immediately visible inside.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.