Docker Community Forums

Share and learn in the Docker community.

Cannot 'docker login' to DTR

docker
dtr

(Fimm) #1

Hi,

I installed docker UCP and DTR on a fresh VM, and no matter what I try i cannot manage to configure docker engine to use my DTR.
I got the following error :
`# docker login -u clem -e ****** 127.0.0.1
Password:
Error response from daemon: Unexpected status code [404] :

404 Not Found

404 Not Found


nginx/1.8.0 ` Both docker UCP and DTR are running on the same VM.

Load balancer log output :

2016-03-07T16:05:25.576525051Z text=172.19.0.1 - - [07/Mar/2016:16:05:25 +0000] "POST /v1/users/ HTTP/1.1" 404 168 "-" "docker/1.10.2-cs1 go/go1.5.3 git-commit/8e23741 kernel/3.10.0-327.10.1.el7.x86_64 os/linux arch/amd64" 2016-03-07T16:05:25.548900949Z text=172.19.0.1 - - [07/Mar/2016:16:05:25 +0000] "GET /v1/_ping HTTP/1.1" 404 168 "-" "docker/1.10.2-cs1 go/go1.5.3 git-commit/8e23741 kernel/3.10.0-327.10.1.el7.x86_64 os/linux arch/amd64" 2016-03-07T16:05:25.501702216Z text=2016/03/07 16:05:25 [error] 12#0: *4531 no live upstreams while connecting to upstream, client: 172.19.0.1, server: , request: "GET /v2/ HTTP/1.1", upstream: "http://image_storage/v2/", host: "127.0.0.1" 2016-03-07T16:05:25.501609817Z text=172.19.0.1 - - [07/Mar/2016:16:05:25 +0000] "GET /v2/ HTTP/1.1" 502 172 "-" "docker/1.10.2-cs1 go/go1.5.3 git-commit/8e23741 kernel/3.10.0-327.10.1.el7.x86_64 os/linux arch/amd64"

# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b92bc53fd90f docker/ucp-controller:1.0.0 "/bin/controller serv" 31 minutes ago Up 9 minutes 0.0.0.0:444->8080/tcp ucp-controller 41e992494045 docker/ucp-cfssl:1.0.0 "/bin/cfssl serve -ad" 31 minutes ago Up 9 minutes 8888/tcp, 0.0.0.0:12381->12381/tcp ucp-cluster-root-ca 83ce7ad86019 docker/ucp-cfssl:1.0.0 "/bin/cfssl serve -ad" 31 minutes ago Up 9 minutes 8888/tcp, 0.0.0.0:12382->12382/tcp ucp-client-root-ca 72f4d95ad022 docker/ucp-swarm:1.0.0 "/swarm manage --tlsv" 32 minutes ago Up 9 minutes 0.0.0.0:2376->2375/tcp ucp-swarm-manager 7218a9ae91d8 docker/ucp-swarm:1.0.0 "/swarm join --discov" 32 minutes ago Up 9 minutes 2375/tcp ucp-swarm-join 7c2e6aded5f5 docker/ucp-proxy:1.0.0 "/bin/run" 32 minutes ago Up 9 minutes 0.0.0.0:12376->2376/tcp ucp-proxy 626dba802880 docker/ucp-etcd:1.0.0 "/bin/etcd --data-dir" 32 minutes ago Up 9 minutes 2380/tcp, 4001/tcp, 7001/tcp, 0.0.0.0:12380->12380/tcp, 0.0.0.0:12379->2379/tcp ucp-kv 748faef693de postgres:9.4.1 "/docker-entrypoint.s" 39 minutes ago Up 9 minutes 5432/tcp docker_trusted_registry_postgres 71ae1f1dd6a4 docker/trusted-registry-garant:1.4.3 "garant /config/garan" 39 minutes ago Up 9 minutes docker_trusted_registry_auth_server 0b6b7c9c018a docker/trusted-registry-log-aggregator:1.4.3 "log-aggregator" 39 minutes ago Up 9 minutes docker_trusted_registry_log_aggregator 30a9ca0a1b04 docker/trusted-registry-admin-server:1.4.3 "server" 39 minutes ago Up 9 minutes 80/tcp docker_trusted_registry_admin_server 470db33cdf03 docker/trusted-registry-nginx:1.4.3 "watcher" 39 minutes ago Up 9 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp docker_trusted_registry_load_balancer 8a7fee817b3d docker/trusted-registry-index:1.4.3 "server" 39 minutes ago Up 9 minutes docker_trusted_registry_registry_index 66eea1cfa461 docker/trusted-registry-distribution:v2.2.1 "registry /config/sto" 39 minutes ago Restarting (2) 2 minutes ago 5000/tcp docker_trusted_registry_image_storage_1 2b7189cebc36 docker/trusted-registry-distribution:v2.2.1 "registry /config/sto" 39 minutes ago Restarting (2) 2 minutes ago 5000/tcp docker_trusted_registry_image_storage_0


(Nihal) #2

@fimm
Hey I am also in same situation. I have too UCP and DTR on same fresh VM (CentOS7.1).

Have you got the solution of this issue. If yes please share it here.

Thanks,
Nihal Raj


(Z3r0sum) #3

@fimm and @nihal - I wonder if you guys are seeing the same thing I am: UCP DTR Login issues – what do your nginx logs look like?