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)
Everybody: if you cannot run
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpasswordthen you are NOT running registry 2.1 and your image is outdated.Please make sure you
docker pull registry:2to update your image and try again.Confirm you have the latest version by issuing a:
docker run registry:2 --versionShould output:
/bin/registry github.com/docker/distribution v2.1.0I 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/htpasswdworking correctly. It would claim
htpasswdwasn’t available. I endedup installingapache2-utilsand creating the htpasswd file from the server.