Understanding Docker Machine
The command docker-machine allows you to create a machine to host Docker.
Docker machine on VirtualBox
Show list of Docker Machine:
docker-machine ls
Create a new Docker Machine(e.g. dvm1) on VirtualBox:
docker-machine create --driver virtualbox dvm1
Setup the environment for using dvm1.
eval $(docker-machine env dvm1)
Stop dvm1:
docker-machine stop dvm1
Remove dvm1:
docker-machine rm dvm1
Docker on Baremetal
I found the following command on the Internet(here):
docker-machine create --driver "generic" \
--generic-ip-address "<your-server-ip>" \
--generic-ssh-user "<your-ssh-user>" \
--generic-ssh-key "<your-pem-key>" \
--generic-ssh-port "<ssh-port>" \
<your-machine-name>
I haven't tried it yet, but will do soon(2016/03/20)...