Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

registry should generate certs #27

Open
proppy opened this issue Nov 3, 2014 · 7 comments
Open

registry should generate certs #27

proppy opened this issue Nov 3, 2014 · 7 comments

Comments

@proppy
Copy link
Member

proppy commented Nov 3, 2014

Since 1.3.1 docker rejects pulls from insecure location unless they are whitelisted with a new --insecure-registry flag.

We should make sure users can run google/docker-registry on localhost:5000, without having them to pass extra flag to their daemon.

For that we need to:

  • include https://github.com/SvenDowideit/generate_cert in the docker image
  • generate the certs in ttps://github.com/GoogleCloudPlatform/docker-registry/blob/master/run.sh
  • update the README instructions to run the image with -v /etc/docker/certs.d
@proppy
Copy link
Member Author

proppy commented Nov 3, 2014

We also need to run a nginx container in front either as a separate container (good) or in the same image (bad).

@ktintc @dlorenc

@proppy
Copy link
Member Author

proppy commented Nov 3, 2014

one trick we could use is having the docker registry entry point output its own usage.

$(docker run docker-registry) would run:

docker run -v ... nginx
docker run -v ... docker-registry

@proppy
Copy link
Member Author

proppy commented Nov 3, 2014

Or we could just setup gunicorn to do SSL:http://gunicorn-docs.readthedocs.org/en/latest/settings.html#ssl

@tiborvass
Copy link

@proppy precisely what I did, i have a working example.

@proppy
Copy link
Member Author

proppy commented Nov 6, 2014

@tiborvass do you plan to push this upstream in docker/docker-registry?

@tiborvass
Copy link

@proppy yes

@proppy
Copy link
Member Author

proppy commented Nov 6, 2014

@tiborvass I was planning to work on this today, care to collaborate on this? I'm happy to either do the review or take over your working example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants