Open rogaha opened 9 years ago
+1. This happens with me as well. Just gets stuck at Creating Digital Ocean droplet...
for a long time even though the droplet is actually up and running.
docker-machine version 0.4.0 (9d0dc7a)
+1
docker-machine version 0.4.1 (HEAD)
I'm using the generic driver. I can SSH to the remote server without password.
+1
Having the same issues with the generic driver (none)
docker-machine version 0.4.1 (e2c88d6)
+1
docker-machine version 0.4.1 (e2c88d6)
I believe I had this error due to a pre-existing 'default' Virtualbox machine. I deleted it and also uninstalled/reinstalled and all is now clear for me on Win8 box.
The same issue happens on centos 7.3.
(test) DBG | SSH cmd err, output: exit status 255: (test) DBG | Error getting ssh command 'exit 0' : ssh command error: (test) DBG | command : exit 0 (test) DBG | err : exit status 255 docker-machine version 0.12.2, build 9371605 WTF?
+1
Same Problem:
Getting to WaitForSSH function...
(sandboxprovisiontest) Calling .GetSSHHostname
(sandboxprovisiontest) Calling .GetSSHPort
(sandboxprovisiontest) Calling .GetSSHKeyPath
(sandboxprovisiontest) Calling .GetSSHKeyPath
(sandboxprovisiontest) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/xxxxxl/.docker/machine/machines/sandboxprovisiontest/id_rsa (-rw-------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@142.93.64.40 -o IdentitiesOnly=yes -i /Users/vxxxxxl/.docker/machine/machines/sandboxprovisiontest/id_rsa -p 22] /usr/bin/ssh
NO clue how to fix this. docker version Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:39 2019 OS/Arch: darwin/amd64 Experimental: false
Server: Docker Engine - Community Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:13:06 2019 OS/Arch: linux/amd64 Experimental: true
Same problem, no solution...
+1
docker-machine version 0.16.0, build 702c267f
So I solved this, at least for my case. Here's for posterity:
The important line in the output (run docker-machine -B ...
to get debug info) is the following:
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@142.93.64.40 -o IdentitiesOnly=yes -i /Users/vxxxxxl/.docker/machine/machines/sandboxprovisiontest/id_rsa -p 22] /usr/bin/ssh }
(copied from above)
It does some shell wizardry you can ignore, just remove the cruft from the start, and put the /usr/bin/ssh in the beginning and run. With the example above, that would be:
/usr/bin/ssh -F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@142.93.64.40 -o IdentitiesOnly=yes -i /Users/vxxxxxl/.docker/machine/machines/sandboxprovisiontest/id_rsa -p 22
After it fails, remove the -o LogLevel=quiet
and it might tell you what's wrong.
In my case–and this is unfortunately where our cases diverge– the reference to the identity/private key was actually missing, i. e. the -I /Users/vxxxxxl/.docker/machine/machines/sandboxprovisiontest/id_rsa
. I edited /home/
In the examples here, the problem seems to be different. Check if the path is correct and also check permissions on the file. It should be 600.
The machine was created, but without docker.