Docker Create a Docker machine


Using docker-machine is the best method to install Docker on a machine. It will automatically apply the best security settings available, including generating a unique pair of SSL certificates for mutual authentication and SSH keys.

To create a local machine using Virtualbox:

docker-machine create --driver virtualbox docker-host-1

To install Docker on an existing machine, use the generic driver:

docker-machine -D create -d generic --generic-ip-address docker-host-2

The --driver option tells docker how to create the machine. For a list of supported drivers, see: