Skip to content

Instantly share code, notes, and snippets.

@cfstras
Last active June 5, 2019 12:25
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 cfstras/e21c1930d254201eeedb6dbe1906aea1 to your computer and use it in GitHub Desktop.
Save cfstras/e21c1930d254201eeedb6dbe1906aea1 to your computer and use it in GitHub Desktop.
Installing a Windows based Docker host in a Vagrant VM

For mac and linux

  • install vagrant docker-machine with windows
# Mac:
brew cask install vagrant
# Linux (Debian):
apt-get install vagrant

git clone https://github.com/StefanScherer/windows-docker-machine
cd windows-docker-machine
vagrant up 2016-box   # takes a very long time... don't interrupt!
cd ..
  • Use the new docker-machine
docker-machine ls

# NAME       ACTIVE   DRIVER    STATE     URL                        SWARM   DOCKER          ERRORS
#2016-box   -        generic   Running   tcp://192.168.99.90:2376           v18.03.1-ee-3

eval $(docker-machine env 2016-box)
docker version

# Server: ... OS/Arch: windows/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment