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
2375and2376to the VM) - Copy all the
*.pemfiles from~\.docker\machine\certs\to~\.docker\ - Copy
config.jsonfrom~\.docker\machine\machines\default\to~\.docker\(Btw, the name of the VMdefaultis hardcoded in the script, andconfig.josndoesn't seem to be read by Docker, see docker/compose#1590 ) - Create the following 2 environment variables:
DOCKER_TLS_VERIFY=1DOCKER_CONFIG=<YOUR HOME DIRECTORY>\.docker
- Run
docker psto verify that docker is working now