Machine: Machine stucks with 'Waiting for SSH to be available...' during creation with docker driver

Created on 18 Oct 2017  路  8Comments  路  Source: docker/machine

Docker machine creation with google driver is hanging on Waiting for SSH to be available... step.
Machine is creating, as I can see from docker-machine ls command, but his state is 'Timeout'.
Full docker machine create command:
docker-machine create --driver google --google-project my-proj --google-zone my-zone --google-machine-type my-type
Some info about system:

~$ lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial
~$ docker-machine -v
docker-machine version 0.12.0, build 45c69ad
~$ docker -v
Docker version 17.06.2-ce, build cec0b72

I also tried to create machine with newer docker-maachine vers, but it's the same (Hanging on 'Waiting for SSH to be available...' step):

~$ docker-machine -v
docker-machine version 0.12.2, build 9371605

Most helpful comment

Got the same problem here for amazon. Ports 22 and 2376 are open to all IPs.

All 8 comments

any update on this issue? Facing similar one.

BleedBlue:~ Shreyas$ docker-machine create -d amazonec2 infra-aws
Running pre-create checks...
Creating machine...
(infra-aws) 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...

Last login: Thu Feb 1 12:17:22 on ttys002
BleedBlue:~ Shreyas$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
infra-aws amazonec2 Timeout

you need to open the port 22 ssh and tcp port 2376 block it to the ip-address of the instance on which your running the docker-machine create command,

The main problem was, that if you want to create docker-machine in GCE, and you receive "Waiting for SSH to be available...", you should whitelist your IP in GCloud firewall rules to allow incoming traffic of "tcp:22".
Now I'm able to create docker machine and ssh to it.

Got the same problem here for amazon. Ports 22 and 2376 are open to all IPs.

Having the same issue with AWS

I used powershell in windows 10 , it always stucks.
After I changed the terminal tool to git bash instead of powershell it works. 馃槼

I'm using macOS, using zsh ( I don't think this should be a problem ). I will research deeper and give my final say on this.

Did anyone figure out how to solve this problem? I'm using mac os using zsh

Was this page helpful?
0 / 5 - 0 ratings