Skip to content

Instantly share code, notes, and snippets.

@falvarez
Created January 24, 2018 08:10
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save falvarez/71298b07603d32374ceb2845c3eec997 to your computer and use it in GitHub Desktop.
Save falvarez/71298b07603d32374ceb2845c3eec997 to your computer and use it in GitHub Desktop.
Run docker container, mount current working directory and get interactive shell
docker run -ti -v $(pwd):/tmp DOCKER_IMAGE /bin/bash
@davidskuza
Copy link

For Windows that would be docker run --rm -it -v "%cd%":/tmp DOCKER_IMAGE /bin/bash

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