Let's take a look at how we can use Docker Machine to deploy Docker hosts on your local infrastructure, on your own machine, as well as on various cloud providers.
Docker Machine uses the --driver
switch to specify the location you want to set up and install the Docker host. So, we can set up a Docker host in VirtualBox:
$ docker-machine create --driver virtualbox <name>
Or, we can set it up on VMware Fusion:
$ docker-machine create --driver vmwarefusion <name>
The previous command is structured as the docker-machine
command, followed by what we want to do: create
. We will use the --driver
switch next. Then, we need to specify where we are going to place the Docker host. In our case, we specified virtualbox
and vmwarefusion
. Lastly, we need to give the Docker host a name. This name is to be unique; so when you issue other Docker Machine commands, they are distinguishable.
There are various other switches we can use to tell how much memory the Docker...