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

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



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

- 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


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