Docker registry placement is a key consideration when building a dev/test environment. The factors that influence Docker registry placement include:
For our use cases, we use a local private registry, which addresses our key variety, velocity, and security requirements.
To create a local registry from Docker Hub, the developer runs the following commands:
$ docker pull registry
$ mkdir -p /registry/private
$ docker run -d -p 5000:5000 -name registry -v /var/lib/registry --restart