Skip to content
Felix Garcia Borrego edited this page Aug 16, 2015 · 16 revisions

How to connect Docker UI using docker-machine on Windows.

WIP

Docker-machine runs the default Docker with TLS enabled. We need to install the certificates used by Docker in Chrome to be able to connect to the Docker Remote API.

  • Use docker-machine config default to find out where is the certificate we need to import in Chrome and the url to connect. In the screenshop below the connection url is https://192.168.99.100:2376 and the certificates are located in C:\\Users\\borre\\.docker\\machine\\machines\\default

If you try this url you will see an authentication error.

  • Build the certificate to install in Chrome using openssl:
    cd C:\\Users\\borre\\.docker\\machine\\machines\\default
    cat cert.pem ca.pem >> clientcertchain.pem
    openssl pkcs12 -inkey key.pem -in clientcertchain.pem -export -out import.pfx
  • To install the certificate go to Chrome Settings/Show Advanced Settings/Manage Certificates:

  • TODO

How to connect Docker UI using Boot2Docker on Windows

The easiest way to connect to Docker Remote API is by disabling TLS. To do so, you need to:

  • Log into the boot2docker virtual machine:

boot2docker ssh

  • Add export DOCKER_TLS=no to the file /var/lib/boot2docker/profile (may not exist)

echo "export DOCKER_TLS=no" | sudo tee /var/lib/boot2docker/profile

  • Restart boot2docker
boot2docker down
boot2docker up

More info about how to disable TLS: https://github.com/boot2docker/boot2docker/blob/master/README.md#tls-support

Clone this wiki locally