alexkras.com

  • Home
  • YouTube
  • Tech News TLDR
  • Top Posts
  • Resume
    • Projects
  • Contact
    • About

Pulling Docker Images on Ubuntu from Private Registery

October 21, 2015 by Alex Kras Leave a Comment

Share this:

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:


  1. sudo vim /etc/default/docker
  2. Add the following line: DOCKER_OPTS="$DOCKER_OPTS --insecure-registry your.registery.ip.or.url"
  3. Restart docker via: sudo service docker restart

Please Share:

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.
Follow @akras14

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

You may also like:
Share this:

Filed Under: Uncategorized

Recent Post

  • Crunching Honeypot IP Data with Pandas and Python April 7, 2018
  • Introducing my YouTube Channel March 8, 2018
  • How to Restart Python Script after Exception and Run it Forever February 23, 2018
  • My Strategy for SQL Injection Attack February 21, 2018
  • Angular 1 Documentation Disappeared from Google Search Results February 16, 2018

Leave a Reply Cancel reply

Copyright © 2018 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in