Download the appropriate binary for your workstation:
https://docs.docker.com/machine/
sudo curl -L https://github.com/docker/machine/releases/download/v0.2.0/docker-machine_linux-amd64 > /usr/local/bin/docker-machine sudo chmod +x /usr/local/bin/docker-machine
Create the host
docker-machine create docker -d amazonec2 \ --amazonec2-access-key ABCDEFGHIJKLMNOP \ --amazonec2-secret-key '1234567890abcdefghijklm' \ --amazonec2-subnet-id subnet-12345678 \ --amazonec2-vpc-id vpc-1234abcd \ --amazonec2-zone c
What you get:
INFO[0001] Launching instance... INFO[0026] Waiting for SSH on 54.165.56.23:22 sudo: unable to resolve host ip-10-2-0-254 sudo: unable to resolve host docker sudo: unable to resolve host docker INFO[0242] "docker" has been created and is now the active machine. INFO[0242] To point your Docker client at it, run this in your shell: eval "$(docker-machine env docker)"
Advertisements