Skip to content

Instantly share code, notes, and snippets.

@akashdktyagi
Created January 16, 2024 10:14
Show Gist options
  • Save akashdktyagi/c63afb208f822a0249d2f88231b67ab3 to your computer and use it in GitHub Desktop.
Save akashdktyagi/c63afb208f822a0249d2f88231b67ab3 to your computer and use it in GitHub Desktop.
Docker command to mount a volume in docker run
docker run -v /home/akash/vscode/repository:/wow -it registry.gitlab.com/security-products/nodejs-scan:4 /bin/sh
#wow will be automatically created if does not exist
docker run -v /home/akash/vscode/repository:/wow:ro -it registry.gitlab.com/security-products/nodejs-scan:4 /bin/sh
#add ro for read only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment