[Containers] integration with existing registry and ldap authentication
benjo11111 at gmail.com
Thu Jan 21 13:41:46 MST 2016
I have docker registry on another host and portus i opensuse vm.
currently I can do ldap authentication to access portus web interface and i
can see global name space and my own namespace, all working in that.
but when i tried to do docker login <docker_registry:5000> not working. And
i got Error response from daemon: no successful auth challenge for
http://192.168.1.20:5000/v2/ - errors: 
portus (opensuse vm ) - 192.168.1.10
docker (registry container on different host but it is accessible from
portus ) - 192.168.1.20:5000
Do i require to do any other configuration for this or ?
On Thu, Jan 21, 2016 at 11:32 PM, Jordi Massaguer Pla <jmassaguerpla at suse.de
> I guess you have not run portusctl command.
> After installing the rpm, you need to run
> "portusctl setup --local-registry"
> I am assuming you have a docker registry running on your box (install it
> with zypper install docker-distribution-registry)
> Also, make sure you have mariadb installed and running.
> On 01/21/2016 03:12 AM, Benjamin Fernandis wrote:
> i pass below variable to docker registry container ,
> docker run \
> -d --restart=always --name registry \
> -e REGISTRY_LOG_LEVEL=debug \
> -p 5000:5000 \
> -e SEARCH_BACKEND=sqlalchemy \
> -e REGISTRY_AUTH_TOKEN_REALM="http://192.168.1.20:3000/v2/token" \
> -e REGISTRY_AUTH_TOKEN_SERVICE="192.168.1.20:5000" \
> -v /home/test/data:/var/lib/registry \
> where 192.168.1.20 is IP for docker registry.
> but still i can not do login by docker login command line. Do i require to
> add anything in portus ?
> On Thu, Jan 21, 2016 at 2:04 PM, Benjamin Fernandis <
> <benjo11111 at gmail.com>benjo11111 at gmail.com> wrote:
>> I deployed portus on oepnsuse. I can not find /etc/registry/cofig.yml
>> file in portus machine.
>> do i require to add above lines in docker registry container or in portus
>> On Thu, Jan 21, 2016 at 2:00 PM, Aleksa Sarai < <asarai at suse.de>
>> asarai at suse.de> wrote:
>>> On 01/21/2016 11:53 AM, Benjamin Fernandis wrote:
>>>> Hi Miquel,
>>>> I deployed rpm version on opensuse and it is working fine.
>>>> Can you please guide me what is require to enable login in docker
>>>> command line.
>>>> currently i tested portus integration with docker registry and ldap
>>>> authentication to pourtus from web interface.
>>>> trying to do command line docker login and getting below error.
>>>> Error response from daemon: no successful auth challenge for
>>>> http://192.168.1.20:5000/v2/ - errors: 
>>> Are you running Portus using docker-compose? If so, you need
>>> docker-compose version 1.5.2 or later.
>>> Otherwise, please make sure that your *daemon* can access the IP address
>>> of the docker registry given in in /etc/registry/config.yml
>>> in the "realm" field:
>>> realm: http://172.17.0.1:3000/v2/token
>>> service: 172.17.0.1:5000
>>> And that the "service" is the same as the one you registered when you
>>> first started Portus (this is more likely to be the cause).
>>> Aleksa Sarai
>>> Docker Core Specialist
>>> SUSE Australia
>>> Containers mailing list
>>> Containers at lists.suse.com
> Containers mailing listContainers at lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers
> Containers mailing list
> Containers at lists.suse.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Containers