Earlier, we used a Docker-hosted registry (https://hub.docker.com) to push and pull images. Nonetheless, quite often you will come across use cases where you will have to host a private registry in your infrastructure. In this recipe, we will host our own private registry using Docker's registry:2 image.
Setting up a private index/registry
Getting ready
Make sure that Docker daemon version 1.6.0 or above is running on the host.
How to do it...
Perform the following steps:
- Let's begin by launching a local registry on the container using the following command...