Since this is working fine, we can continue pushing our first image to our registry.
Push & Pull
Lets pull a simple alpine image, retag it and push it to our registry:
Now let us check our catalogue:
We are now able to pull our pushed image:
Conclusion
This is the shortest way to install a Docker registry. But there are still some steps missing.
Persistency: All pushed images will be gone after deleting the container. Think about using a docker volume.
Use a Docker registry ui: https://github.com/Joxit/docker-registry-ui
Install a reverse proxy with htpasswd and make it accessible via https. Otherwise it will only work locally and everyone could access your registry!
If you take those mentioned steps, your registry is production ready for small groups. If you are interested in enterprise or managed service, you can take a look at JFrog, Nexus, Gitlab and Github. These are only a few of many solutions.