I kept running into the following error, when trying to docker pull
a docker image from our private repo.
1 2 3 4 |
docker pull some.ip/db:20151004073001 Error response from daemon: unable to ping registry endpoint https://some.ip/v0/ v2 ping attempt failed with error: Get https://some.ip/v2/: tls: failed to parse certificate from server: x509: negative serial number v1 ping attempt failed with error: Get https://some.ip/v1/_ping: tls: failed to parse certificate from server: x509: negative serial number |
Googling the error was not very helpful, and it took me a while to find a solution, even though it is very simple. You just have to let docker know that it’s ok to trust that repo:
sudo vim /etc/default/docker
- Add the following line:
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry your.registery.ip.or.url"
- Restart docker via:
sudo service docker restart
Wanna see my pretty face and hear me ramble? Check out my YouTube channel 🙂
P.S. Check out Disrupted: My Misadventure in the Start-Up Bubble by Dan Lyons a co-producer and writer for the HBO series Silicon Valley (sponsored).
P.P.S. Let's connect on Twitter, Facebook or LinkedIn. You can also get updates via RSS Feed or the Email Form Bellow.
You may also like:
Leave a Reply