[Containers] Unable to "docker login" to Portus when using the docker-compose development setup and LDAP

Aleksa Sarai asarai at suse.com
Wed Dec 23 06:18:43 MST 2015

On 12/23/2015 11:33 PM, Todd Morgan wrote:
> Hi everyone,
> The logs didn't show up as I just went straight from the .compose-setup
> docker-compose logs
> helped with the requested output.

$ docker cp portus_web_1:logs/development.log .

Should give you the logs, as the compose setup should still produce 
logs. The logs may be stored under logs/production.log.

> The appropriate error message log is detailed below ... I believe the interesting section is
> level=warning msg="error authorizing context: authorization token required" http.request.host="ignobilia-bibliotheca:5000" http.request.id=45f63877-95a7-4680-b6c5-fa55ae550749 http.request.method=GET http.request.remoteaddr="" http.request.uri="/v2/" http.request.useragent="docker/1.9.1 go/go1.4.2 git-commit/a34a1d5 kernel/3.10.0-229.20.1.el7.x86_64 os/linux arch/amd64" instance.id=6dd344ac-0c8b-44c3-86e5-a8d7e690030a version=v2.1.1

This is the log from the registry. Can you please give the log from 
Portus? The issue is probably related to Portus not being aware of the 
host "".

> docker login ignobilia-bibliotheca:5000
> Username: toddmorgan
> Password:
> Email: todd.morgan at cgu.com.au
> Error response from daemon: no successful auth challenge for http://ignobilia-bibliotheca:5000/v2/ - errors: [token auth attempt for registry http://ignobilia-bibliotheca:5000/v2/: request failed with status: 502 Bad Gateway]

Have you tried setting DOCKER_HOST=ignobilia-bibliotheca? Make sure your 
remove docker/environment and docker/registry/config.yml before running 
./compose-setup.sh again.

> I'm also behind a corporate proxy which may cause issues.

I doubt that this is the issue, as you can reach Portus.

Aleksa Sarai
Docker Core Specialist
SUSE Australia

More information about the Containers mailing list