Skip to content

Instantly share code, notes, and snippets.

@nfisher
Created March 23, 2018 23:45
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 nfisher/05cece7356a1b52ed20e65c7fce3eef0 to your computer and use it in GitHub Desktop.
Save nfisher/05cece7356a1b52ed20e65c7fce3eef0 to your computer and use it in GitHub Desktop.
docker bind local folder
docker-compose run dev bash
version: '2'
services:
dev:
build: . # assumes you have a local docker file otherwise specify an image
ports:
- "5000:5000"
volumes:
- ~/.ssh:/root/.ssh # might need to tweak this
docker run -it --name $NAME --mount src="$SSH_PATH",target=/root/.ssh,type=bind $IMAGE bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment