Docker Community Forums

Share and learn in the Docker community.

Network error when installing DTR on UCP


(Liamwhite) #1

My UCP controller is running on default ports so I have used replica options to change my DTR ports as mentioned in other posts in this forum, but I get the following error -

INFO[0000] Beginning Docker Trusted Registry installation
INFO[0000] Connecting to network: ltestu26/dtr-br
INFO[0000] Waiting for phase2 container to be known to the Docker daemon
INFO[0000] Connecting to network: dtr-ol
INFO[0000] Waiting for phase2 container to be known to the Docker daemon
ERRO[0001] Couldn’t attach phase2 container to 8c655f2b3bea257807d82f198232bba885b6c8ce7830839f8383fd72698ce893: Error response from daemon: network 8c655f2b3bea257807d82f198232bba885b6c8ce7830839f8383fd72698ce893 not found
FATA[0001] Error response from daemon: network 8c655f2b3bea257807d82f198232bba885b6c8ce7830839f8383fd72698ce893 not found
FATA[0003] Phase 2 returned non-zero status: 1

My command is -

docker run -it --rm docker/dtr install --ucp-ca "$(cat ca.pem)" --ucp-node ltestu26 --dtr-load-balancer 9.20.32.28:4443 --replica-http-port 81 --replica-https-port 4443 --ucp-url $UCP_URL--ucp-username $USERNAME --ucp-password $PASSWORD

docker network ls output

NETWORK ID          NAME                       DRIVER              SCOPE
8c655f2b3bea        dtr-ol                     overlay             global              
d45260c8227b        ltestu24/bridge            bridge              local               
e241178855c1        ltestu24/host              host                local               
83d50916e483        ltestu24/none              null                local               
b0e14f9b9559        ltestu26/bridge            bridge              local               
338dfa8d4a48        ltestu26/docker_gwbridge   bridge              local               
c7a8efe31ae0        ltestu26/dtr-br            bridge              local               
35d83e2dc56f        ltestu26/host              host                local               
e6fd49adbf4b        ltestu26/none              null                local

(Sacha Oltmans) #2

Hey, I found out that rebooting the server after this step fails solves the issue. After rebooting the network shows up with ‘docker network ls’ and DTR installs successfully.