pecigonzalo / docker-machine-vmwareworkstation

VMWare Workstation driver for Docker Machine https://github.com/docker/machine
Apache License 2.0
363 stars 67 forks source link

Unable connect to docker machine #28

Closed festum closed 8 years ago

festum commented 8 years ago

OS: Windows 10 1511 x64 VMware v12

C:\Users\Fes\Downloads
λ DockerToolbox-1.12.0.exe /COMPONENTS="Docker,DockerMachine"

C:\Users\Fes\Downloads
λ docker-machine create --driver=vmwareworkstation dev
Running pre-create checks...
(dev) Default Boot2Docker ISO is out-of-date, downloading the latest release...
(dev) Latest release for github.com/boot2docker/boot2docker is v1.12.1
(dev) Downloading C:\Users\Fes\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.12.1/boot2docker.iso...
(dev) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(dev) Copying C:\Users\Fes\.docker\machine\cache\boot2docker.iso to C:\Users\Fes\.docker\machine\machines\dev\boot2docker.iso...
(dev) Creating SSH key...
(dev) Creating VM...
(dev) Creating disk 'C:\Users\Fes\.docker\machine\machines\dev\dev.vmdk'
(dev) Virtual disk creation successful.
(dev) Starting dev...
(dev) Waiting for VM to come online...
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

C:\Users\Fes\Downloads
λ dm ls
NAME   ACTIVE   DRIVER              STATE     URL                         SWARM   DOCKER    ERRORS
dev    -        vmwareworkstation   Running   tcp://192.168.30.129:2376           Unknown   Unable to query docker version: Get https://192.168.30.129:2376/v1.15/version: x509: certificate signed by unknown authority
pecigonzalo commented 8 years ago

@Festum Can you post debug logs?

festum commented 7 years ago

@pecigonzalo I found the problem is caused by default OpenSSHd as default ssh client in SysEnvPath. Solved by changing it to Portable Git's ssh binary.

pecigonzalo commented 7 years ago

Thanks for reporting back, i think another user just had the same issue, i will look to submit a fix to upstream docker-machine