Setting up a private index/registry
As we saw earlier, the public Docker registry is the available Docker Hub (https://registry.hub.docker.com/) through which users can push/pull images. We can also host a private registry either on a local environment or on the cloud. There are a few ways to set up the local registry:
- Use the Docker registry from Docker Hub
- Build an image from Dockerfile and run a registry container:
https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/registry
- Configure the distribution-specific package such as Fedora, which provides the docker-registry package that you can install and configure.
The easiest way to set it up is through the registry container itself.
Getting ready
Make sure the Docker daemon is running on ...
Get DevOps: Puppet, Docker, and Kubernetes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.