docker-archive / docker-registry

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

Issue on configure a private docker-registry against registry container and nginx container #1001

Open joda70 opened 9 years ago

joda70 commented 9 years ago

I am working on CENTOS 7. My goal is to configure a private registry by using two containers one for registry and the other one linking registry to nginx container.

I am using registry:latest (this works more or less) I am using nginx:latest (The access trough http works, while that with https shows issues without logging on the nginx server.

registry: docker run -p 80:5000 -v /opt/docker-registry:/registry -e DOCKER_REGISTRY_CONFIG=/registry/docker-registry.yml -v /etc/localtime:/etc/localtime --name registry registry

nginx: docker run -P -v /etc/pki/ca-trust/source/anchors:/usr/local/share/ca-certificates/ -v /etc/ssl/certs:/etc/ssl/certs:ro -v /etc/ssl/private:/etc/ssl/private:ro -v /opt/nginx/conf.d:/etc/nginx/conf.d:ro --link registry:registry --name nginx-proxy -v /etc/localtime:/etc/localtime -i -t nginx /bin/bash

The https does not work

docker 1.5.0

Do you have any idea? Do you suggest to upgrade docker version?

dmp42 commented 9 years ago

Can you provide docker daemon logs (preferably in debug mode: -D)?

Thanks.