How to install Docker Machine in Windows.
I was following the steps from https://docs.docker.com/machine/install-machine/ for Windows but ran into some issues.
In this post, you will see all the steps needed to install Docker in Windows
Currently, Docker recommends that you install and use Docker Machine on Windows with msysgit. This will provide you with some programs that Docker Machine relies on such as ssh
, as well as a functioning shell.
When you have installed msysgit, start up the terminal prompt and run the following commands. Here it is assumed that you are on a 64-bit Windows installation. If you are on a 32-bit installation, please substitute “i386” for “x86_64” in the URLs mentioned.
1. Download and Install msysgit for windows (standard installation)
2. Open Git for Windows
First, install the Docker client binary:$ curl -L https://get.docker.com/builds/Windows/x86_64/docker-latest.exe > /bin/docker
2. Next, install the Docker Machine binary:
curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_windows-amd64.exe > /bin/docker-machine
This is where I got error message saying
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
$ curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-mac
hine_windows-amd64.exe> /bin/docker-machine
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 412 0 412 0 0 1201 0 –:–:– –:–:– –:–:– 1201
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a “bundle”
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn’t adequate, you can specify an alternate file
using the –cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you’d like to turn off curl’s verification of the certificate, use
the -k (or –insecure) option.
3. To avoid SSL Certificate or ignore, I added -K in the script (With the curl command line tool, you disable this with -k/–insecure.)
Read More: http://curl.haxx.se/docs/sslcerts.html
curl -L -k https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_windows-amd64.exe > /bin/docker-machine
4. To verify docker running in Windows
Docker is ready in your Windows Machine