Mount storage using long-form syntax.
Section: Containers
Use explicit mount syntax
bash
bash
docker run --mount type=bind,src="$PWD",dst=/app myapp:latestExplanation
Long-form mount syntax is more explicit and extensible than `-v`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Containers