<div dir="ltr">i pass below variable to docker registry container ,<div><br></div><div><div>docker run \</div><div><span class="" style="white-space:pre">  </span>-d --restart=always --name registry \</div><div><span class="" style="white-space:pre">      </span>-e REGISTRY_LOG_LEVEL=debug \</div><div><span class="" style="white-space:pre">      </span>-p 5000:5000 \</div><div><span class="" style="white-space:pre">     </span>-e SEARCH_BACKEND=sqlalchemy \</div><div><span class="" style="white-space:pre">     </span>-e REGISTRY_AUTH_TOKEN_REALM="<a href="http://192.168.1.20:3000/v2/token">http://192.168.1.20:3000/v2/token</a>" \</div><div><span class="" style="white-space:pre"> </span>-e REGISTRY_AUTH_TOKEN_SERVICE="<a href="http://192.168.1.20:5000">192.168.1.20:5000</a>" \</div><div><span class="" style="white-space:pre">        </span>-v /home/test/data:/var/lib/registry \</div><div><span class="" style="white-space:pre">     </span> registry:2.1</div></div><div><br></div><div>where 192.168.1.20 is IP for docker registry.</div><div><br></div><div>but still i can not do login by docker login command line. Do i require to add anything in portus ?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 2:04 PM, Benjamin Fernandis <span dir="ltr"><<a href="mailto:benjo11111@gmail.com" target="_blank">benjo11111@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I deployed portus on oepnsuse. I can not find /etc/registry/cofig.yml file in portus machine. <div><br></div><div>do i require to add above lines in docker registry container or in portus vm?</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 2:00 PM, Aleksa Sarai <span dir="ltr"><<a href="mailto:asarai@suse.de" target="_blank">asarai@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 01/21/2016 11:53 AM, Benjamin Fernandis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Miquel,<br>
<br>
I deployed rpm version on opensuse and it is working fine.<br>
<br>
Can you please guide me what is require to enable login in docker<br>
command line.<br>
<br>
currently i tested portus integration with docker registry and ldap<br>
authentication to pourtus from web interface.<br>
<br>
trying to do command line docker login and getting below error.<br>
<br>
Error response from daemon: no successful auth challenge for<br>
<a href="http://192.168.1.20:5000/v2/" rel="noreferrer" target="_blank">http://192.168.1.20:5000/v2/</a> - errors: []<br>
</blockquote>
<br></span>
Are you running Portus using docker-compose? If so, you need docker-compose version 1.5.2 or later.<br>
<br>
Otherwise, please make sure that your *daemon* can access the IP address of the docker registry given in in /etc/registry/config.yml<br>
in the "realm" field:<br>
<br>
auth:<br>
  token:<br>
    realm: <a href="http://172.17.0.1:3000/v2/token" rel="noreferrer" target="_blank">http://172.17.0.1:3000/v2/token</a><br>
    service: <a href="http://172.17.0.1:5000" rel="noreferrer" target="_blank">172.17.0.1:5000</a><br>
<br>
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).<span><font color="#888888"><br>
<br>
-- <br>
Aleksa Sarai<br>
Docker Core Specialist<br>
SUSE Australia<br>
<a href="https://www.cyphar.com/" rel="noreferrer" target="_blank">https://www.cyphar.com/</a></font></span><div><div><br>
_______________________________________________<br>
Containers mailing list<br>
<a href="mailto:Containers@lists.suse.com" target="_blank">Containers@lists.suse.com</a><br>
<a href="http://lists.suse.com/mailman/listinfo/containers" rel="noreferrer" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>