[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:19:02 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:log/development.log .

Should give you the logs, as the compose setup should still produce 
logs. The log may be stored under log/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="10.134.135.56:47616" 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 "172.17.0.1:5000".

>
> 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/: http://172.17.0.1:3000/v2/token?account=toddmorgan&service=172.17.0.1%3A5000 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
https://www.cyphar.com/


More information about the Containers mailing list