docker-machine-vultr
docker-machine-vultr copied to clipboard
Creating docker machine hangs on 'Waiting machine to be running'
Creating docker machine hangs on 'Waiting machine to be running':
Running pre-create checks... (test-test.new) Validating Vultr VPS parameters... Creating machine... (test-test.new) Creating Vultr VPS (test-test.new) Waiting for IP address to become available... (test-test.new) Created Vultr VPS ID: 17638002, Public IP: 45.76.62.159, Private IP: Waiting for machine to be running, this may take a few minutes... Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded
Container is created and its status becomes 'running' even before the docker-machine command fails. And in the vultr UI I can see it. Also I can ssh to the container.
Command:
docker-machine create --driver vultr --vultr-tag test-test.new --vultr-api-key=xxxxx --vultr-os-id=215 -vultr-region-id 6 --vultr-plan-id=201 test-test.new
OS: (tried both) Ubuntu 16.04 or Ubuntu 18.04
Driver: (tried both) https://github.com/janeczku/docker-machine-vultr/releases/download/v1.3.0/docker-machine-driver-vultr-Linux-x86_6
or
https://github.com/janeczku/docker-machine-vultr/releases/download/v1.4.0/docker-machine-driver-vultr-Linux-x86_6
Docker-machine: (tried both) v. 0.15.0, build b48dc28d or 0.14.0, build 89b8332
Same here,
docker-machine create --driver=vultr --vultr-tag odoo-vultr-1404.com --vultr-api-key 'U5H43FVNDZXPCRT7GTLMKBT7NL6BAECWRW7A' --vultr-os-id '160' --vultr-region-id '6' --vultr-plan-id '201' odoo-vultr-1404.com
Running pre-create checks... (odoo-vultr-1404.com) Validating Vultr VPS parameters... Creating machine... (odoo-vultr-1404.com) Creating Vultr VPS (odoo-vultr-1404.com) Waiting for IP address to become available... (odoo-vultr-1404.com) Created Vultr VPS ID: 17779292, Public IP: 144.202.24.242, Private IP: Waiting for machine to be running, this may take a few minutes... Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
+1
+1
OS: Windows 10
I had this same issue but I got it working - eventually. I think its an SSH issue which means the connection drops midway hence the timeouts. These are the steps that resolved it for me - I'm not 100% if all are necessary...
- Create Machine:
docker-machine create --driver vultr --vultr-api-key=<KEY> --vultr-region-id=8 --vultr-os-id=215 ubuntu
This will now time out with the error message above...
-
Stop the machine from the server or command
docker-machine stop ubuntu
-
Start the machine with command
docker-machine start ubuntu
-
SSH onto your machine:
ssh root@<IP-get-it-from-Vultr>
and run:
apt-get update
apt-get upgrade
- Regenerate certificates:
docker-machine regenerate-certs ubuntu
Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Now you should correctly have the docker daemon running.
I had to do this a few times, so try again from scratch if you can't get it running.
Versions: driver 1.4 docker-machine 0.16.1 (running from a mac)
Also having this issue on Ubuntu
@benscabbia your solution helped. thank you!