mkuchin / docker-registry-web

Web UI for private docker registry v2
https://hub.docker.com/r/hyper/docker-registry-web/
GNU General Public License v2.0
534 stars 135 forks source link

Admin access does not work #92

Open jarrar opened 6 years ago

jarrar commented 6 years ago

Hello, I am trying to run this docker-registry Web UI with SSL, I have self signed certificate etc, but whenever I run it on the web gui it prompts me for user name and password, I enter:

Username: admin Password: admin

it spits back an error:

Sorry, we were not able to find a user with that username and password.

It works just fine if I am not use SSL and lets me login in, but when using SSL I see this behavior.

Here is how I start the web container:


REG_CONTAINER=my_registry_1
ME=registry-web
REGISTRY_URL=https://<my-refgistry-host.domain.com>/v2
REGISTRY_NAME=my-refgistry-host.domain.com

docker rm -f $ME

docker run -d -p 8080:8080 --name $ME --link $REG_CONTAINER                     \
       -e REGISTRY_URL=$REGISTRY_URL -e REGISTRY_NAME=$REGISTRY_NAME            \
       -v $(pwd)/conf/registry-web.yml:/conf/config.yml:ro                  \
           -v $(pwd)/conf:/conf/ -v $(pwd)/data:/data                       \
           -e REGISTRY_TRUST_ANY_SSL=true                           \
           -e REGISTRY_BASIC_AUTH="YWRtaW46Y2hhbmdlbWU="                    \
       hyper/docker-registry-web

docker exec $ME mkdir -p /usr/local/share/ca-certificates/docker-dev-cert
docker exec $ME cp /conf/devdockerCA.crt /usr/local/share/ca-certificates/docker-dev-cert/
docker exec $ME update-ca-certificates