[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: I can't push/pull to my docker registry anymore




----- Original Message -----
> For anyone getting errors like:
> 
> Error: Invalid registry endpoint https://172.121.17.1:5001/v1/: Get
> https://172.121.17.1:5001/v1/_ping: EOF. If this private registry supports
> only HTTP or HTTPS with an unknown CA certificate, please add
> `--insecure-registry 172.121.17.1:5001` to the daemon's arguments. In the
> case of HTTPS, if you have access to the registry's CA certificate, no need
> for the flag; simply place the CA certificate at
> /etc/docker/certs.d/172.121.17.1:5001/ca.crt
> 
> 
> With Docker 1.3.1 (which just recently released on Fedora).  You'll need to
> do one of the following:
> 
> - Setup the docker daemon to allow access to an insecure registry.  For
> example:
> 
> sed -i 's,^OPTIONS=--selinux-enabled.*,OPTIONS=--selinux-enabled
> --insecure-registry=172.121.17.1:5001,' /etc/sysconfig/docker

I forgot to mention you'll also need to:

systemctl daemon-reload
systemctl restart docker

to pick up the change.

> 
> - Or add a cert to you docker registry which requires fronting it with nginx
> or apache.
> 
> 
> Note: There was an issue to add this to docker pull that was just closed (not
> merged): https://github.com/docker/docker/pull/8935
> 
> 
> 
> Let me know if anyone has a simpler (or more elegant) solution.
> 
> 
> -Dan
> 
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]