Docker Registry

Docker Registry

👉 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?

  1. As in docker hub we can get only 1 private registry to store the images.

  2. As many public registry can be stored in docker hub

  3. It is easy to store our own images and can pull and push the images as in when required

  4. It is made easy to automate the development.

Basic command for registry?

  1. Stop the registry and remove the data

     docker container stop registry && docker container rm -v registry
    
  2. 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!👏