Docker Community Forums

Share and learn in the Docker community.

An error occurred trying to connect: read tcp 192.168.99.100:2376: connection reset by peer

ucp

(Javapenguin) #1

I am getting an error during the Evaluation installation and quickstart Step 5. Install the UCP controller

When I run this command:

docker run --rm -it
-v /var/run/docker.sock:/var/run/docker.sock
–name ucp docker/ucp install -i
–swarm-port 3376 --host-address $(docker-machine ip node1)

This is my output:

Unable to find image ‘docker/ucp:latest’ locally
latest: Pulling from docker/ucp
ea64a1996cb5: Pull complete
Digest: sha256:aae0b5563fd50f5e76c68b3aa8555ad2651d023a39ff805e877cc77ba2800e11
Status: Downloaded newer image for docker/ucp:latest
INFO[0000] Verifying your system is compatible with UCP
Please choose your initial Orca admin password:
Confirm your initial password:
INFO[0024] Pulling required images… (this may take a while)
Error deleting container: An error occurred trying to connect: read tcp 192.168.99.100:2376: connection reset by peer
read tcp 192.168.99.100:2376: connection reset by peer

Before running the install in step 5 this is what I had:

$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
node1 * virtualbox Running tcp://192.168.99.100:2376 v1.10.3
node2 - virtualbox Running tcp://192.168.99.101:2376 v1.10.3

Now I have this:

$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
node1 - virtualbox Running tcp://192.168.99.102:2376 Unknown Unable to query docker version: Get https://192.168.99.102:2376/v1.15/version: x509: certificate is valid for 192.168.99.100, not 192.168.99.102
node2 - virtualbox Running tcp://192.168.99.101:2376 v1.10.3


(Nathan Le Claire) #2

Looks like there was a hiccup trying to connect to the exposed Docker API from that machine.

I’m not sure what’s going on with the UCP installer, but you might be able to salvage your VM by running docker-machine regenerate-certs -f node1.


(Pseverini) #3

I came across the exact same issue. I had two docker hosts running fine yesterday and then shut down OSX for the evening. I started them up this morning and then encountered the issue below. The ip addresses are dynamically pulled from the network pool. I also upgraded the hosts using “docker-machine upgrade [host-name]” as well before I shut down the first time.

Issue:
Unknown Unable to query docker version: Get https://192.168.99.100:2376/v1.15/version: x509: certificate is valid for 192.168.99.102, not 192.168.99.100

I regenerated the certs like mentioned above and that did cure the problem.

Solution:
docker-machine regenerate-certs -f docker-host-1

Version Info:
docker-machine version 0.8.2, build e18a919
docker v1.12.2
OSX 10.12