Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeouts with the default OS and install URL #67

Open
displague opened this issue Aug 4, 2021 · 2 comments
Open

timeouts with the default OS and install URL #67

displague opened this issue Aug 4, 2021 · 2 comments

Comments

@displague
Copy link
Member

$ docker-machine create -d metal --metal-metro-code=sv ... foo 
Running pre-create checks...
Creating machine...
(foo) Creating SSH key...
(foo) Provisioning Equinix Metal server...
(foo) Created device ID f1e6265f-159f-4d77-a314-7f8ba16e5426, IP address 145.40.90.201
(foo) Waiting for Provisioning...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
@displague
Copy link
Member Author

$ docker-machine ls 
NAME   ACTIVE   DRIVER   STATE     URL                        SWARM   DOCKER    ERRORS
foo    -        metal    Running   tcp://145.40.90.201:2376           Unknown   Unable to query docker version: Cannot connect to the docker engine endpoint
$ docker-machine env foo
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "145.40.90.201:2376": dial tcp 145.40.90.201:2376: connect: connection refused
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.
$ docker-machine regenerate-certs foo
Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
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...

(It looks like this will timeout)

I'm going to try changing the Docker install URL, per https://www.digitalocean.com/community/questions/unable-to-verify-the-docker-daemon-is-listening

@displague displague changed the title timeouts with the default OS timeouts with the default OS and install URL Aug 4, 2021
@displague
Copy link
Member Author

Changing the engine URL is a work-around:

$ docker-machine create --engine-install-url "https://releases.rancher.com/install-docker/19.03.9.sh" --metal-metro-code=sv ... -d metal bar
Running pre-create checks...
Creating machine...
(bar) Creating SSH key...
(bar) Provisioning Equinix Metal server...
(bar) Created device ID 15876dc2-6ece-430f-8fe6-217e1f2d99cf, IP address 139.178.68.105
(bar) Waiting for Provisioning...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant