I have docker-engine installed on one of the linux VM, and it is working fine. I can spawn containers and work with them. But now I want to manage this host using my windows workstation, so I installed docker toolbox. I can use docker-machine command.
But I am not able to add the host using docker-machine command. I am executing the following command:
docker-machine --native-ssh -D create -d generic --generic-ip-address 10.51.227.5 compute6`
I get an error for this command:
`Docker Machine Version: 0.6.0, build e27fb87
Found binary path at C:\Program Files\Docker Toolbox\docker-machine.exe
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:61854
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at C:\Program Files\Docker Toolbox\docker-machine.exe
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:61858
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(compute6) Calling .GetMachineName
(compute6) Calling .DriverName
(compute6) Calling .GetCreateFlags
(compute6) Calling .SetConfigFromFlags
Running pre-create checks...
(compute6) Calling .PreCreateCheck
(compute6) Calling .GetConfigRaw
Creating machine...
(compute6) Calling .Create
(compute6) Calling .GetConfigRaw
(compute6) DBG | IP: 10.51.227.5
(compute6) No SSH key specified. Connecting to this machine now and in the future will require the ssh agent to contain the appropriate key.
(compute6) Calling .DriverName
(compute6) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(compute6) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(compute6) Calling .GetSSHHostname
(compute6) Calling .GetSSHPort
(compute6) Calling .GetSSHKeyPath
(compute6) Calling .GetSSHUsername
Using SSH client type: native
{{{ 0 [] [] []} root [] []} 10.51.227.5 22}
About to run SSH command:
exit 0
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
SSH cmd err, output: :
Detecting the provisioner...
(compute6) Calling .GetSSHHostname
(compute6) Calling .GetSSHPort
(compute6) Calling .GetSSHKeyPath
(compute6) Calling .GetSSHUsername
Using SSH client type: native
{{{ 0 [] [] []} root [] []} 10.51.227.5 22}
About to run SSH command:
cat /etc/os-release
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
And after couple of retries, it finally errors out:
SSH cmd err, output: :
Error creating machine: Error detecting OS: OS type not recognized
open : The system cannot find the file specified.
notifying bugsnag: [Error creating machine: Error detecting OS: OS type not recognized]
Any solution for this? I am stuck from couple of days. :(
I have the same problem.
Docker version on win10:
`Client:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: windows/amd64
Experimental: true
Server:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: linux/amd64
Experimental: true`
Result:
`PS C:\Users\wdzak\docker\test> docker-machine create --driver hyperv wm
Running pre-create checks...
(wm) Image cache directory does not exist, creating it at C:\Users\wdzak.docker\machine\cache...
(wm) No default Boot2Docker ISO found locally, downloading the latest release...
(wm) Latest release for github.com/boot2docker/boot2docker is v1.12.0-rc4
(wm) Downloading C:\Users\wdzak.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/release
s/download/v1.12.0-rc4/boot2docker.iso...
(wm) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(wm) Copying C:\Users\wdzak.docker\machine\cache\boot2docker.iso to C:\Users\wdzak.docker\machine\machines\wm\boot2docker.i
so...
(wm) Creating SSH key...
(wm) Creating VM...
(wm) Using switch "DockerNAT"
(wm) Creating VHD
(wm) Starting VM...
(wm) Waiting for host to start...
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...
docker-machine : Error creating machine: Error detecting OS: OS type not recognized
In Zeile:1 Zeichen:1
I have the same problem on mac.
$ docker-machine -v
docker-machine version 0.12.2, build 9371605