Skip to content

Instantly share code, notes, and snippets.

@djui
Created May 12, 2016 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djui/b77e3a78c32c201c0844d2d253a825e1 to your computer and use it in GitHub Desktop.
Save djui/b77e3a78c32c201c0844d2d253a825e1 to your computer and use it in GitHub Desktop.
$ pwd
/Users/uwe/dev/inception-test
$ touch hello_inception
$ docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/foo docker
/ # ls /foo/hello_inception
/foo/hello_inception
/ # cd /foo
/foo # docker run --rm -it -v $(pwd):/foo docker
/ # ls /foo/hello_inception
ls: /foo/hello_inception: No such file or directory
/ # exit
/foo # docker run --rm -it -v /Users/uwe/dev/inception-test:/foo docker
/ # ls /foo/hello_inception
/foo/hello_inception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment