Docker Community Forums

Share and learn in the Docker community.

Docker DTR install problem

**I was installing Docker DTR and it failed with an error mentioned below,it shows some of the replicas are created,but i am not able to figure out which replica broked

Command:

docker run -it --rm docker/dtr install
–ucp-node localhost.localdomain
–ucp-username admin
–ucp-url *IPADDRSS:PORT
–ucp-ca
"-----BEGIN CERTIFICATE-----
MIIBfTCCASSgAwIBAgIUV3Lrx3B9AY4o7ZW4WzAeBBpGGuUwCgYIKoZIzj0EAwIw
HTEbMBkGA1UEAxMSVUNQIENsaWVudCBSb290IENBMB4XDTIwMDYwNjEyMTcwMFoX
DTI1MDYwNTEyMTcwMFowHTEbMBkGA1UEAxMSVUNQIENsaWVudCBSb290IENBMFkw
EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEH2O2BaE+DGBHBZ7xXp3dZGS486IYmdvl
Qa1n2b2+UPo8VxSTX3IzKoTDZsMLB9AQLK9/tlccHJInCclw4jjnTaNCMEAwDgYD
VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFGsP2Jc04v+u
2qqp73gGDymtr4DJMAoGCCqGSM49BAMCA0cAMEQCIEqTmrdGU5ipo3f/dMXinmHa
RjRWj1aPlTxCuru6GuXJAiB3YxuVUqzgSjbRdxTz+Ga/jx/nFsNzae483elXRpwR
LA==
-----END CERTIFICATE-----
"

TERMINAL:

INFO[0000] Beginning Docker Trusted Registry installation
ucp-password:
INFO[0010] Validating UCP cert
INFO[0010] Connecting to UCP
INFO[0010] health checking ucp
INFO[0011] Only one available UCP node detected. Picking UCP node ‘localhost.localdomain’
INFO[0011] Searching containers in UCP for DTR replicas
INFO[0011] Searching containers in UCP for DTR replicas
INFO[0011] verifying [80 443] ports on localhost.localdomain
INFO[0679] Waiting for running dtr-phase2 container to finish
INFO[0679] starting phase 2
INFO[0000] Validating UCP cert
INFO[0000] Connecting to UCP
INFO[0000] health checking ucp
INFO[0000] Verifying your system is compatible with DTR
INFO[0000] Checking if the node is okay to install on
INFO[0000] Using default overlay subnet: 10.1.0.0/24
INFO[0000] Creating network: dtr-ol
INFO[0000] Connecting to network: dtr-ol
INFO[0000] Waiting for phase2 container to be known to the Docker daemon
INFO[0004] Setting up replica volumes…
INFO[0006] Creating initial CA certificates
INFO[0006] Bootstrapping rethink…
INFO[0006] Creating dtr-rethinkdb-24f521bdb760…
INFO[0406] Establishing connection with Rethinkdb
INFO[0407] Waiting for database dtr2 to exist
INFO[0407] Waiting for database dtr2 to exist
INFO[0408] Waiting for database dtr2 to exist
INFO[0408] Generated TLS certificate. dnsNames="[*.com .. .dtr ..dtr]" domains="[.com ..com 172.17.0.1 *.dtr ..dtr]" ipAddresses="[172.17.0.1]"
INFO[0408] License config copied from UCP.
INFO[0408] Migrating db…
INFO[0000] Establishing connection with Rethinkdb
INFO[0000] Migrating database schema fromVersion=0 toVersion=10
INFO[0009] Waiting for database notaryserver to exist
INFO[0010] Waiting for database notaryserver to exist
INFO[0010] Waiting for database notaryserver to exist
INFO[0011] Waiting for database notarysigner to exist
INFO[0011] Waiting for database notarysigner to exist
INFO[0012] Waiting for database notarysigner to exist
INFO[0013] Waiting for database jobrunner to exist
INFO[0013] Waiting for database jobrunner to exist
INFO[0014] Waiting for database jobrunner to exist
INFO[0015] Migrating database schema fromVersion=10 toVersion=11
INFO[0016] Migrated database from version 0 to 11
INFO[0427] Starting all containers…
INFO[0427] Getting container configuration and starting containers…
INFO[0427] Automatically configuring rethinkdb cache size to 2000 mb
INFO[0428] Recreating dtr-rethinkdb-24f521bdb760…
INFO[0442] Creating dtr-registry-24f521bdb760…
INFO[0579] Creating dtr-garant-24f521bdb760…
INFO[0662] Creating dtr-api-24f521bdb760…
**FATA[3480] Couldn’t reconfigure: Error transactionally replacing container: failed to reconcile to stopped state: error applying state {2 2 2}: error applying state {2 2 2}: failed to create container dtr-api-24f521bdb760: polling failed with 60 attempts 1s apart: Error response from daemon: {“message”:“invalid session token”} **
**ERRO[4166] failed to remove container : unknown error while removing container b0e105a8548cfeca182048a39fc7571c2eefdceb3951899cda968d691584ba06: Error response from daemon: {“message”:“invalid session token”} **
WARN[4166] Failed to log out. error="Failed to log out. Status code: 401"
FATA[4166] Failed to execute phase 2: Problem running container ‘dtr-phase2’ from image ‘docker.io/docker/dtr:2.8.0’: non-zero return code returned from docker.io/docker/dtr:2.8.0 : 1
I Have highlited the error please check