Docker Community Forums

Share and learn in the Docker community.

Issue with installing DTR 2.0.3 (unable to find a node with port 80 available)


(Peter Lind) #1

I’m trying to install DTR with the following command:

docker run -it --rm docker/dtr install --ucp-url https://UCP --ucp-node DTR-node --dtr-external-url https://172.20.3.28:443 --ucp-username admin --ucp-password *** --ucp-ca “$(cat ucp-ca.pem)”

I get the following error when it gets to nginx:

ERRO[0020] Couldn’t reconfigure: Failed to create new container dtr-nginx-18138f1fb341: Couldn’t create container ‘dtr-nginx-18138f1fb341’ from image ‘docker/dtr-nginx:2.0.3’: Error response from daemon: unable to find a node with port 80 available

I’m installing on a empty UCP node. So there’s nothing using port 443. However DTR has just created a container with the installer using port 80, which is what it seems to complain about:

docker/dtr-api:2.0.3 “/bin/server” 80/tcp

Why is nginx trying to install on port 80 and not 443?

/PeterLB


(5003152) #2

from my experience - install DTR on diffrent docker node from the ucp with only docker Engine o n it. - Try.


(Peter Lind) #3

Thank you, but that is what I’m already doing. :slight_smile:


(5003152) #4

sorry i got the idea by you saying : "I’m installing on a empty UCP node"
cn you run then docker run command

"docker run -it --rm docker/dtr install --ucp-url https://UCP --ucp-node DTR-node --dtr-external-url https://172.20.3.28:443 --ucp-username admin --ucp-password *** --ucp-ca “$(cat ucp-ca.pem)”

"

with --debug at the end ?

and by the way, in your UCP did you allready joind a Docker engine node ?
(from the web UCP you go to Nodes->Add node - > copy the command to docker engine node) ?


(Peter Lind) #5

Thank you for the hint with “–debug”, it gave me a lot of info. Nothing however indicating why it’s failing. After a reboot of the node I’m trying to install DTR on (not UCP) it suddently tried to install nginx on port 443 instead. So that’s progress. But it’s still complaining:

Failed to create new container dtr-nginx-0b50130b9fa4: Couldn’t create container ‘dtr-nginx-0b50130b9fa4’ from image ‘docker/dtr-nginx:2.0.3’: Error response from daemon: unable to find a node with port 443 available

There’s nothing on the node that’s using port 443 however. I’ll try and dig some more into this.


(5003152) #6

but again - as i experienced if you dont have a node added to the UCP before installing the DTR it
makes this kind of issues.

  1. did you connect docker engine node to UCP ?
    (from the web UCP you go to Nodes->Add node - > copy the command to docker engine node) ?

  2. except for this error do you have more errors ?


(Peter Lind) #7
  1. Yes, the node I’m trying to install on is added to UCP. Only the ucp-swarm and ucp-proxy containers is running on it.

  2. I also get this error:

INFO[0004] Waiting for etcd…
DEBU[0004] Failed to connect to etcd: error #0: dial tcp 172.19.0.3:2379: getsockopt: connection refused;error #1: dial tcp 172.19.0.3:4001: getsockopt: connection refused;
INFO[0004] Waiting for etcd…

I’ve checked everything, and nothing seems to be using port 443 on the node.


(5003152) #8

can you install DTR on separate node ?
not ucp and not a node that is added to ucp - i think it will solve you issue.


(Peter Lind) #9

I doubt it. Part 2 of the installation manual says: Since DTR requires a Docker Universal Control Plane (UCP) cluster to run, you need to install UCP first. Learn how to install UCP. Make sure that the node you install DTR on is already joined to the UCP cluster.


(5003152) #10

yes, you will need docker on it but not a node with docker that is added to UCP…
it has made me a lot of issues when i tried installing DTR on UCP node or UCP added node…

i think here we added it later on to UCP and it worked.

can you see maybe you have dead conatiners that stucking the issue ?
docker ps -a and rm them.

other then that im no expert :slight_smile:


(Peter Lind) #11

Removing the node from UCP and adding it again, rebooting it and removing some old images seems to have fixed the issue. Thank you for your help! :smile:


(5003152) #12

Glad it Helped :blush: