-
-
Save akashdktyagi/c63afb208f822a0249d2f88231b67ab3 to your computer and use it in GitHub Desktop.
Docker command to mount a volume in docker run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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