Skip to content

Instantly share code, notes, and snippets.

@vnys
Created March 27, 2018 07:23
Show Gist options
  • Save vnys/7ce4285d2e46bad3e2c1b2d8dcc71fa7 to your computer and use it in GitHub Desktop.
Save vnys/7ce4285d2e46bad3e2c1b2d8dcc71fa7 to your computer and use it in GitHub Desktop.
docker windows local directory
docker build -t vnys/foo .

Then run it on Linux:

docker run -it -v $(pwd):/source vnys/foo bash

...or Windows:

docker run -it -v %cd%:/source vnys/foo bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment