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

Docker Toolbox on Windows 7 - connection/install issue #4508

Open jeliyo opened 6 years ago

jeliyo commented 6 years ago

Customer (Northern Trust) is having connection (possibly installation issues?) with Docker Toolbox v18.03.0-ce (docker-machine.exe version 0.14.0, build 89b8332) on Windows 7

When we launch Docker Quickstart Terminal after installing Docker Toolbox, we get the following:

Starting "default"... 
(default) Check network to re-create if needed... 
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar. 
(default) Waiting for an IP... 
Machine "default" was started. 
Waiting for SSH to be available... 
Detecting the provisioner... 
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command. 
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): Regenerating TLS certificates 
Waiting for SSH to be available... 
Detecting the provisioner... 
Copying certs to the local machine directory... 
Copying certs to the remote machine... 
Could not find matching IP for MAC address 080027b67aa9 
Looks like something went wrong in step 'Checking status on default'... Press any key to continue...

If we press a key to exit and relaunch Docker Quickstart Terminal, we get:

## . 
## ## ## == 
## ## ## ## ## === 
/"""""""""""""""""\___/ === 
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ 
\______ o __/ 
\ \ __/ 
\____\_______/ 

Error getting IP address: Could not find matching IP for MAC address 080027b67aa9 
docker is configured to use the default machine with IP 
For help getting started, check out the docs at https://docs.docker.com 

If I ssh into the VM, I see that Docker is not running:

docker-machine ssh 

docker@default:~$ docker ps 
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 

Then I can start Docker inside the VM:

cd /etc/init.d 
sudo ./docker start 

But when the Docker Toolbox IP is 172.17.0.1, and not 192.168.99.100 as I would expect.

$ docker-machine ip 
172.17.0.1 

Which seems to be causing an issue with the docker binary:

$ docker ps 
error during connect: Get https://192.168.99.100:2376/v1.37/containers/json: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 
jasonbivins commented 6 years ago

Hi @jeliyo - I'm working the salesforce case entered for this as well. Here are the questions i sent to the customer

Can you share the command that you're using to create the Virtual Machine? Please add a --debug flag to the command and share the results that you get.

I have seen similar issues in the past caused by the newly created VM not being able to pull an IP address - are you using DHCP or are you using static IP's?

Are there any log files located here: $HOME/.docker/machine/machines/machinename/machinename/Logs/