Live data from Hacker News

Ask HN: What is your docker registry setup?

news.ycombinator.com

1–2 of 2 posts

Ask HN: What is your docker registry setup?

#1
I'd like to ensure that our build and deploy process is reliable and speedy when pushing/pulling Docker images.

Using DockerHub, I have seen some reliability issues (downtime, sometimes without status page updates), bugs (timeout querying DockerHub API when a repo has many tags), and behavior changes (images used to be immediately available after push, now it appears to be async).

Given the above issues, I'm interested in better understanding what my options are... Have you used / do you recommend alternatives such as DockerHub enterprise, a self-hosted docker registry/distribution, setting up a mirror, CoreOS, etc?

Thanks!

Re: Ask HN: What is your docker registry setup?

#2
I use a self-hosted docker registry. The good thing is the work has already been done for you! You just need to run the registry image from DockerHub. Here's the steps I used to run my registry:

- Mount your storage to a local location

- Pull registry image from DockerHub

- docker run -p 5000:5000 -v : -e STORAGE_PATH= registry

- docker push registry :5000/registry

The last step pushes the registry image you retrieved from DockerHub into your own private registry. I'm running this registry on a VM using a Celerra share. Works like a champ!

The documentation for the registry image I'm running can be found on GitHub: https://github.com/docker/docker-registry

There are many storage options, you don't have to use local storage - there are several options for using cloud storage.

Hope that helps!