docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

Generic driver: plugin server not starting #3862

Open ryaninvents opened 7 years ago

ryaninvents commented 7 years ago

Docker Machine hangs for about a minute and then exits with an error code.

$ docker-machine -D create --driver generic --generic-ip-address=$MY_DOCKER_HOST --generic-ssh-key /home/r24y/.ssh/id_rsa dev-remote
Docker Machine Version:  0.8.2, build e18a919
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:34504
dial tcp 127.0.0.1:34504: getsockopt: connection timed out

Running netstat shortly after the above process starts:

$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      757/cupsd       
tcp6       0      0 :::631                  :::*                    LISTEN      757/cupsd       
udp        0      0 0.0.0.0:54122           0.0.0.0:*                           852/avahi-daemon: r
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           6208/chrome     
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           6208/chrome     
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           852/avahi-daemon: r
udp        0      0 0.0.0.0:68              0.0.0.0:*                           11413/dhclient  
udp        0      0 10.0.0.30:123           0.0.0.0:*                           11649/ntpd      
udp        0      0 0.0.0.0:123             0.0.0.0:*                           11649/ntpd      
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1000/cups-browsed
udp6       0      0 :::5353                 :::*                                6208/chrome     
udp6       0      0 :::5353                 :::*                                852/avahi-daemon: r
udp6       0      0 :::60546                :::*                                852/avahi-daemon: r
udp6       0      0 fe80::225:ff:fe4c:1:123 :::*                                11649/ntpd      
udp6       0      0 :::123                  :::*                                11649/ntpd      

I'm not seeing the "plugin server" that it seems to be trying to connect to.

$ uname -a
Linux washington.local 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ryaninvents commented 7 years ago

Update: I created a local machine with Virtualbox:

$ docker-machine create -d virtualbox default

and once this was running, the generic driver was able to continue. It's a little resource-heavy to run a VM on my laptop just to get the plugins server running, but it's a viable workaround.