Docker Machine is a helpful utility to use in conjunction with Docker:
Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.
Step 1 - Find the Lastest Release Version
Check the docker-machine repository for the latest release version here: https://github.com/docker/machine/releases/. Currently, the version is at v0.10.0
. Adjust the version number accordingly in the next step with the current version number.
Step 2 - Download the Latest Version and Install
Follow the installation instructions for Linux located here: https://docs.docker.com/machine/install-machine/:
curl -L https://github.com/docker/machine/releases/download/v0.10.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
The above commands download the utility to a temporary location, make it executable, and move it to /usr/local/bin
for ease of use.
Step 3 - Test
Check to see if the docker-machine
command is working as expected:
kjones ~ $ docker-machine version
docker-machine version 0.10.0, build 76ed2a6
Helpful links
- Install documentation: https://docs.docker.com/machine/install-machine/
docker-machine
command line reference: https://docs.docker.com/machine/reference/