Report this

What is the reason for this report?

docker-machine create - Waiting for SSH time out

Posted on November 7, 2018

Hi, i try to create a docker machine for the first time, but always get an timeout when the “Waiting for SSH to be available” starts. I tryed it also without sudo and also for without region and image param.

OS Used: Ubuntu 18.10

chris@spectre:~$ docker-machine --v
docker-machine version 0.15.0, build b48dc28
chris@spectre:~$ sudo docker-machine create --driver digitalocean --digitalocean-access-token=XXXXXXXXX --digitalocean-image=ubuntu-18-04-x64 --digitalocean-region=fra1 butterfisch
[sudo] Passwort für chris: 
Creating CA: /root/snap/docker/321/.docker/machine/certs/ca.pem
Creating client certificate: /root/snap/docker/321/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(butterfisch) Creating SSH key...
(butterfisch) Creating Digital Ocean droplet...
(butterfisch) Waiting for IP address to be assigned to the Droplet...
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

Does anyone has a clue?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Same issue also, I believe its to do with docker machine trying to use SSH as root user but can’t as it doesn’t have the permissions.

Hey friend!

I don’t really use docker machine, but I’m just thinking out loud here. Is there a way to add an additional delay prior to it trying to connect over SSH in the process?

Jarland

No, it’s an automatic running script.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.