docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.89k stars 877 forks source link

Registry startup failing with certificates #1050

Open mohanrao opened 8 years ago

mohanrao commented 8 years ago

Hi,

I am getting following error when i am using registry:2 and along tls certificates for http

registry_1 | time="2015-12-30T18:59:56Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.5.2 instance.id=a97415c3-5d7a-42b1-8c91-ab7655951d6e version=v2.2.1 registry_1 | time="2015-12-30T18:59:56Z" level=info msg="Starting upload purge in 4m0s" go.version=go1.5.2 instance.id=a97415c3-5d7a-42b1-8c91-ab7655951d6e version=v2.2.1 registry_1 | time="2015-12-30T18:59:56Z" level=info msg="redis not configured" go.version=go1.5.2 instance.id=a97415c3-5d7a-42b1-8c91-ab7655951d6e version=v2.2.1 registry_1 | time="2015-12-30T18:59:56Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.5.2 instance.id=a97415c3-5d7a-42b1-8c91-ab7655951d6e version=v2.2.1 registry_1 | time="2015-12-30T18:59:56Z" level=fatal msg="crypto/tls: failed to parse key PEM data" dockerregistry_registry_1 exited with code 1

seedow commented 7 years ago

Hi, i'm having the same issue when running the following command:

docker run -d -p 5000:5000 --restart=always --name registry -v /certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key registry:2.5.1


time="2016-10-10T16:26:16Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.6.3 instance.id=56b82018-5c86-4430-9b22-f8d2e280a0ff version=v2.5.1 time="2016-10-10T16:26:16Z" level=info msg="redis not configured" go.version=go1.6.3 instance.id=56b82018-5c86-4430-9b22-f8d2e280a0ff version=v2.5.1 time="2016-10-10T16:26:16Z" level=info msg="Starting upload purge in 44m0s" go.version=go1.6.3 instance.id=56b82018-5c86-4430-9b22-f8d2e280a0ff version=v2.5.1 time="2016-10-10T16:26:16Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.6.3 instance.id=56b82018-5c86-4430-9b22-f8d2e280a0ff version=v2.5.1 time="2016-10-10T16:26:16Z" level=fatal msg="crypto/tls: failed to find any PEM data in key input"