Unable to login into private docker registry (v2.0)

I am trying to setup a private Docker Registry using the standard docker registry image and a Docker Registry Reverse Proxy (https://registry.hub.docker.com/u/marvambass/nginx-registry-proxy/)

The goal is to secure the registry using SSL (using self-signed ssl cert) and username/password authentication. This all seems to go well, when i try to navigate via browser to private docker registry using : https://<private-docker-reg>:443/v2/ I get a prompt to provide a username and password and i get correct output in this case {}

  • GitLab CI runner - can't access other repository
  • docker automatically commit and push
  • aws ecr access authenticator required
  • is it possible to speed up writes inside a docker container?
  • How to add module to Wildfly using CLI
  • Docker - where are the src files for ADD and COPY?
  • But when i try to login using the docker client i seem unable to login:

    > docker login https://<private-docker-reg>:443 
    > Username: foo
    > Password: bar
    > Email: 
    > FATA[0005] Error response from daemon: v1 ping attempt failed with
    > error: Get https://<private-docker-reg>:443/v1/_ping: x509:
    > certificate signed by unknown authority. If this private registry
    > supports only HTTP or HTTPS with an unknown CA certificate, please add
    > `--insecure-registry <private-docker-reg>:443` 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/<private-docker-reg>:443/ca.crt

    In trying to get around this issue i modified my /etc/default/docker file and added the following line on my docker client laptop:

    DOCKER_OPTS="$DOCKER_OPTS --insecure-registry <private-docker-reg>:443"

    Restarted the docker daemon, but no luck so far…

    Any hints or tips to get around this issue??

  • How do I expose ports in Docker on Windows 10?
  • Cannot find module '/parse/cloud/main.js' in Docker Parse Server
  • Fetching AWS instance metadata from within Docker container?
  • Monitoring changes at mounted a host directory from Docker container
  • Magento devbox not install
  • how to run kafka from docker landoop image
  • One Solution collect form web for “Unable to login into private docker registry (v2.0)”

    In order to use Docker Registry v2 you need to have at least docker client version 1.6.0 or higher. Run the following command to verify your docker CLI version:

    docker info

    As per docker registry documentation:

    If a docker client has a version less than 1.6, Nginx will route its requests to the 1.0 registry. Requests from newer clients will route to the 2.0 registry.
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.