Skip to content

Instantly share code, notes, and snippets.

@xycui
Last active November 15, 2018 08:20
Show Gist options
  • Save xycui/4e9cd437ef7c9344c1b979cef3f99432 to your computer and use it in GitHub Desktop.
Save xycui/4e9cd437ef7c9344c1b979cef3f99432 to your computer and use it in GitHub Desktop.
Docker related tries

Sharing/mounting current/other directory when run a image

Mac

docker run -it -v $(pwd):/datavlm [image name]:[tag] /bin/bash

Windows

docker run -it -v %cd%:/datavlm [image name]:[tag] /bin/bash

Potential issue: The mount folder is empty while the source(host) folder is not.
Solution: Unsharing the drive and Resharing the Drives from Settings. Github post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment