distribution: unable to login to private v2 registry

I get the following error message during login:

FATA[0004] Error response from daemon: (Code: 404; Headers: map[Content-Type:[text/plain; charset=utf-8] Docker-Distribution-Api-Version:[registry/2.0] Content-Length:[19] Date:[Mon, 10 Aug 2015 15:09:28 GMT] Server:[Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips]])

I am using docker v 1.6.2

Any idea why it is failing. I have all the certs in the right place.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 30 (13 by maintainers)

Most upvoted comments

Everybody: if you cannot run docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword then you are NOT running registry 2.1 and your image is outdated.

Please make sure you docker pull registry:2 to update your image and try again.

Confirm you have the latest version by issuing a:

docker run registry:2 --version

Should output:

/bin/registry github.com/docker/distribution v2.1.0

I mentioned I was following https://docs.docker.com/registry/deploying/ for the process. There was one deviation, I was unable to get:

docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd

working correctly. It would claim htpasswd wasn’t available. I endedup installing apache2-utils and creating the htpasswd file from the server.