Skip to content

Instantly share code, notes, and snippets.

@ismyrnow
Last active January 15, 2016 21:06
Show Gist options
  • Save ismyrnow/2aa22d1483f8ea89861b to your computer and use it in GitHub Desktop.
Save ismyrnow/2aa22d1483f8ea89861b to your computer and use it in GitHub Desktop.
Instructions for using docker-machine on Windows
docker-machine start dev
# Make note of the IP address (typically 192.168.99.100)
docker-machine env dev --shell cmd
# Copy/paste commands
docker build -t ismyrnow/my-container:1.0.0 .
docker run -di -p 8080:8080 ismyrnow/my-container:1.0.0
# To access the shell of the container:
docker exec -it -u root *hash* bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment