[Containers] integration with existing registry and ldap authentication

Benjamin Fernandis benjo11111 at gmail.com
Wed Jan 20 19:12:58 MST 2016


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 \
registry:2.1

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>
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
> vm?
>
>
> On Thu, Jan 21, 2016 at 2:00 PM, Aleksa Sarai <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:
>>
>> auth:
>>   token:
>>     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
>> https://www.cyphar.com/
>>
>> _______________________________________________
>> Containers mailing list
>> Containers at lists.suse.com
>> http://lists.suse.com/mailman/listinfo/containers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/pipermail/containers/attachments/20160121/fa8a62fd/attachment.htm>


More information about the Containers mailing list