There is a container available for docker registry for this purpose, it can be used within docker host to setting up our private docker registry.
Instead we can use our internal docker registry to pull or push docker images. When you have large number of docker hosts in your environment, Creating our own private docker registry within our internal network helps us to manage docker images from a centralized server also no need to provide internet access to all docker hosts.