Docker private registry | TLS certificate issue

Y. Eliash

I've tried to follow the following tutorial to setup our own private registry (v2) on an AWS Centos machine.

I've self signed a TLS certificate and placed it in /etc/docker/certs.d/MACHINE_STATIS_IP:5000/

When trying to login the registry (docker login MACHINE_IP:5000) or push a tagged repository (MACHINE_IP:5000/ubuntu:latest) i get the following error :

Error response from daemon: Get https://MACHINE_IP:5000/v1/users/: x509: cannot validate certificate for MACHINE_IP because it doesn't contain any IP SANs

Tried to search for an answer for 2 days, however I couldn't find any. I've set the certificate CN (common name) to MACHINE_STATIC_IP:5000

Y. Eliash

When using a self signed TLS certificate docker daemon require you to add the certificate to it's known certificates.

Use the keytool command to grab the certificate :

keytool -printcert -sslserver ${NEXUS_DOMAIN}:${SSL_PORT} -rfc > ${NEXUS_DOMAIN}.crt

And copy it your client's machine SSL certificates directory (in my case - ubuntu):

sudo cp ${NEXUS_DOMAIN}.crt /usr/local/share/ca-certificates/${NEXUS_DOMAIN}.crt && sudo update-ca-certificates

Now reload docker daemon and you're good to go :

sudo systemctl restart docker

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Docker private registry | TLS certificate issue

From Dev

docker the docker registry (a private installation of it) use https (tls/ssl)

From Dev

docker the docker registry (a private installation of it) use https (tls/ssl)

From Dev

Docker private registry with mirror

From Dev

Private docker registry works in curl, but not in docker: x509: certificate signed by unknown authority

From Dev

Docker push to private registry issues

From Dev

Access control for private docker registry

From Dev

Private docker registry and high availability

From Dev

Creating a Private Docker Registry with Authentication

From Dev

Pushing files into private registry in Docker

From Dev

User Interface for Private docker Registry

From Dev

Creating a Private Docker Registry with Authentication

From Dev

Pushing files into private registry in Docker

From Dev

Setup notification for private docker registry

From Dev

Setting up a Docker registry with Letsencrypt certificate

From Java

How to delete images from a private docker registry?

From Java

Docker API push to private registry error

From Dev

docker commit data container to private registry

From Dev

Docker - Unable to push image to private registry

From Dev

Docker - check private registry image version

From Dev

Docker: What is the simplest way to secure a private registry?

From Dev

Using Docker API to push to private registry

From Dev

Using Docker API to pull from a private registry

From Dev

Is there a docker registry cluster solution for private purpose?

From Dev

Pushing image to private docker registry with credentials

From Dev

Error setting up private docker-registry

From Dev

Docker private registry - Method not allowed 405

From Dev

Image Search Docker Private Registry 2

From Dev

docker login not working with nexus 3 private registry

Related Related

  1. 1

    Docker private registry | TLS certificate issue

  2. 2

    docker the docker registry (a private installation of it) use https (tls/ssl)

  3. 3

    docker the docker registry (a private installation of it) use https (tls/ssl)

  4. 4

    Docker private registry with mirror

  5. 5

    Private docker registry works in curl, but not in docker: x509: certificate signed by unknown authority

  6. 6

    Docker push to private registry issues

  7. 7

    Access control for private docker registry

  8. 8

    Private docker registry and high availability

  9. 9

    Creating a Private Docker Registry with Authentication

  10. 10

    Pushing files into private registry in Docker

  11. 11

    User Interface for Private docker Registry

  12. 12

    Creating a Private Docker Registry with Authentication

  13. 13

    Pushing files into private registry in Docker

  14. 14

    Setup notification for private docker registry

  15. 15

    Setting up a Docker registry with Letsencrypt certificate

  16. 16

    How to delete images from a private docker registry?

  17. 17

    Docker API push to private registry error

  18. 18

    docker commit data container to private registry

  19. 19

    Docker - Unable to push image to private registry

  20. 20

    Docker - check private registry image version

  21. 21

    Docker: What is the simplest way to secure a private registry?

  22. 22

    Using Docker API to push to private registry

  23. 23

    Using Docker API to pull from a private registry

  24. 24

    Is there a docker registry cluster solution for private purpose?

  25. 25

    Pushing image to private docker registry with credentials

  26. 26

    Error setting up private docker-registry

  27. 27

    Docker private registry - Method not allowed 405

  28. 28

    Image Search Docker Private Registry 2

  29. 29

    docker login not working with nexus 3 private registry

HotTag

Archive