Skip to content

Instantly share code, notes, and snippets.

@houtianze
Last active June 3, 2016 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houtianze/7ddd06ef1c535c04722d to your computer and use it in GitHub Desktop.
Save houtianze/7ddd06ef1c535c04722d to your computer and use it in GitHub Desktop.
Fixing Docker Toolbox installation on Windows

The following is what I need to do to get Docker working on Windows after a fresh installation of Docker Toolbox (version 1.9.0, latest as the time of writting).

  • Fix the boot2docker VM port mappings using the commands here: https://gist.github.com/houtianze/bbe6d9af9f7e21bf1eef (bascially, map local port 2375 and 2376 to the VM)
  • Copy all the *.pem files from ~\.docker\machine\certs\ to ~\.docker\
  • Copy config.json from ~\.docker\machine\machines\default\ to ~\.docker\ (Btw, the name of the VM default is hardcoded in the script, and config.josn doesn't seem to be read by Docker, see docker/compose#1590 )
  • Create the following 2 environment variables:
    • DOCKER_TLS_VERIFY=1
    • DOCKER_CONFIG=<YOUR HOME DIRECTORY>\.docker
  • Run docker ps to verify that docker is working now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment