Friday, May 13, 2016

Ubuntu 16.04 and Docker 1.11 - Accessing secured private registry

After trying to access a private registry that is secured via ssl, and adding the certificate authority (ca.pem) under

  /etc/docker/certs.d/<IP of registry>

Where my IP is 10.68.230.7, the pull/push requests still failed.

$ docker pull 10.68.230.7/alpine
Using default tag: latest
Error response from daemon: Get https://10.68.230.7/v1/_ping: x509: certificate signed by unknown authority

It seems docker does not like certificates with the ca.pem file name.  To fix this rename the ca.pem file to ca.crt.

$ cp /etc/docker/certs.d/10.68.230.7/ca.pem /etc/docker/certs.d/10.68.230.7/ca.crt

Then it works.

$ docker pull 10.68.230.7/alpine
Using default tag: latest
latest: Pulling from alpine
d0ca440e8637: Already exists 
Digest: sha256:5c826f3f0f5c34aca4df43360ec0faef6326b18bd311309cc8ae3a83f799d1eb
Status: Downloaded newer image for 10.68.230.7/alpine:latest

3 comments:

  1. Thank you for an additional great post. Exactly where else could anybody get that kind of facts in this kind of a ideal way of writing? I have a presentation next week, and I’m around the appear for this kind of data.
    python training Course in chennai | python training in Bangalore | Python training institute in kalyan nagar

    ReplyDelete
  2. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    Java training in Annanagar | Java training in Chennai

    Java training in Chennai | Java training in Electronic city

    ReplyDelete