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
and2376
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 VMdefault
is hardcoded in the script, andconfig.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