A Docker Registry is a remote store of Docker images.
Technically, a registry is an instance of the registry image, and runs within Docker.
Docker store allows you to buy and sell Docker images or distribute them for free.
Docker is configured to look for images on Docker Hub by default.
docker run -d -p 5000:5000 --name registry registry:2
docker container stop registry && docker container rm -v registry
When you use
Example:
docker image tag ubuntu localhost:5000/myfirstimage
docker push localhost:5000/myfirstimage
docker pull localhost:5000/myfirstimage