docker-registry
docker-registry copied to clipboard
registry doesnt start
When i try to run the registry it fails in the logs i get
panic: unable to configure authorization (htpasswd): open /auth/htpasswd: permission denied
how is that possible ? i do have the auth folder mounted and with the file in it ...
@Perfect-Web what's your configuration? what did you type to start your registry? what's in your logs? did you read the docs?
More importantly: what version of the registry are you running?
my run config is
docker run -dit --restart=always --net=host -v /root/auth:/auth -e REGISTRY_HTTP_SECRET=fgbhfgy45gf6gyy -e "REGISTRY_AUTH=htpasswd" -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd -v /root/certs:/certs:ro -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/ssl_certificate/certificate.pem -e REGISTRY_HTTP_TLS_KEY=/certs/ssl_certificate/privatekey.pem -v /var/lib/local-registry:/srv/registry -e STANDALONE=true -e MIRROR_SOURCE=https://registry-1.docker.io -e REGISTRY_REDIS_DB=3 -e MIRROR_SOURCE_INDEX=https://index.docker.io -e STORAGE_PATH=/srv/registry -e SETTINGS_FLAVOR=local --user registry:registry --name=local-registry registry:2.2.1
yes, i read the docs
Ok. The bug tracker is there: https://github.com/docker/distribution/issues
This here is the deprecated registry v1 repository, as advertised in the description.
About the permission issue:
- can you
bashinto the container and copy the output ofls /auth? - what version of docker are you running?
- do you use SELinux?
- do things work without authentication?
Finally, you will probably receive faster back and forth / help on irc (#docker-distribution on freenode).
it works if i run as privileged