Docker Community Forums

Share and learn in the Docker community.

Docker Machine nightly build

docker
aws

(Andrefernandes) #1

Current docker-machine AWS driver creates Ubuntu 15.01 VMs. Looking at the sources docs it seems that next release will create Ubuntu 16.04 LTS.

Trying to change the ami image makes docker-machine hang on SSH connection:

➜  ethereum git:(master) docker-machine create --driver amazonec2 \
  --amazonec2-region us-east-1 \
  --amazonec2-zone b \
  --amazonec2-instance-type t2.nano \
  --amazonec2-ssh-user etheruser \
  --amazonec2-ami ami-c60b90d1 \
  --amazonec2-ssh-keypath ~/.ssh/id_rsa \
  etherplay-1
Running pre-create checks...
Creating machine...
(etherplay-1) Launching instance...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

I will try to use a nightly build of docker-machine. Is there any place to download a nightly release or must I build it myself?

Tnx!


(Andrefernandes) #2

Did these steps:

export USE_CONTAINER=true
TARGET_OS=darwin make build-x

Seems to work but version info is weird:

➜ ./bin/docker-machine-Darwin-x86_64 version
docker-machine-Darwin-x86_64 version 0.7.0, build e1a0334

…and aws arguments are broken. :frowning:


(Andrefernandes) #3

OMG, never mind.

It seems that docker-machine arguments for ssh-user and ss-keypath do not work as I thought so. My bad.

docker-machine create --driver amazonec2 \
  --amazonec2-region us-east-1 \
  --amazonec2-zone b \
  --amazonec2-instance-type t2.nano \
  --amazonec2-ami ami-c60b90d1 \
  etherplay-1

Removing them is enough with current Dm version (0.8.1).

Sorry!