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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Here full output. Problem still persists (even on windows pc on differen network :D ) here output from my linux pc again, but with --debug flag.
I solved my issue by doing this:
https://www.digitalocean.com/community/questions/ssh-not-available-when-creating-docker-machine-through-digitalocean
I hope this helps :)
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.