👉 What is docker registry? Image? Private Registry? Deploy Private Registry Benefits of registry? Basic commands of registry?
What is docker registry?
Docker registry is an official tool from the Docker project for storing and distributing container images. Docker Registry is open source, and anyone can download and run the software to set up their own container image registry.
Image
docker run nginx
It will start downloading from docker.io that is Docker hub
image: docker.io/nginx/nginx
docker.io--> Registry /nginx-->User/Account /nginx-->Image/Repository
Private Registry
docker login private-registry.io
docker run private-registry.io/apps/internal-app
Deploy Private Registry
docker run -d -p 5000:5000 --name registry registry:2
docker image tag my-image localhost:5000/my-image
docker push localhost:5000/myimage
docker pull localhost:5000/my-image
docker pull 101.101.45.101;5000/my-image
Benefits of registry?
As in docker hub we can get only 1 private registry to store the images.
As many public registry can be stored in docker hub
It is easy to store our own images and can pull and push the images as in when required
It is made easy to automate the development.
Basic command for registry?
Stop the registry and remove the data
docker container stop registry && docker container rm -v registry
Stop the registry
docker container stop registry
🥳That's great if you have make till here you have covered basic of docker registry.
If you liked what you read, do follow and any feedback for further improvement will be highly appreciated!
Thank you and Happy Learning!👏