Created
January 24, 2018 08:10
-
-
Save falvarez/71298b07603d32374ceb2845c3eec997 to your computer and use it in GitHub Desktop.
Run docker container, mount current working directory and get interactive shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -ti -v $(pwd):/tmp DOCKER_IMAGE /bin/bash |
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: invalid reference format: repository name must be lowercase.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
This is a *nix script.
Looks like you are trying to run this on Windows. Try this:
docker run -ti -v ${PWD}:/tmp DOCKER_IMAGE /bin/bash
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
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: invalid reference format: repository name must be lowercase.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.