Docker registry – trying to simplify concept and bit details

Docker Registry - Docker Hub - official cloud based registry of Docker
Docker Registry - Docker Hub - official cloud based registry of Docker

Hi All,

Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂

Background : Since exploring Docker / Kubernetes, recently got an assignment to create Private registry and push our docker images to our private registry

Before discussing private registry and how to create it, here I will discuss first what is Docker Registry? Types of Docker Registry ? and few more details

What is Docker Registry ?

  • A Docker registry is the storage for our docker image
    • As we discussed in previous articles as well – Docker Image is nothing but read-only template which contains set of instructions for creating container which runs on Docker platform
  • These images within registries are available either public – can be downloaded by anyone OR private – restricted access to users
  • Registry is nothing but instance of registry image and runs within Docker
  • We interact with registry using Push and Pull commands
  • Its the service which hosts and distributes Docker images
  • We could host Docker registries either in cloud or on-premises
  • The Registry is stateless
  • The Registry is open-source
  • We could have either Public Registry OR Private Registry
  • Some example of public Docker registries are
    • Googles container registry (GCR)
      • It supports only private registries
      • It supports automated image build via GitHub
    • Amazon’s Elastic Container Registry (ECR)
      • It supports only private registries
      • It doesn’t support automated image building
    • Azure Container Registry (ACR)
      • It supports only private registries
      • It does not provide automated image building
  • We can create our private registry deriving from Official registry image – registry version 2 – we will discuss this in next article

Prerequisites :

  • Docker must be installed to have Docker registry

What is Docker Hub?

Docker Registry - Docker Hub - official cloud based registry of Docker
fig : Docker Registry – Docker Hub – official cloud based registry of Docker

Interacting with Registry : (Here using default registry – Docker Hub)

docker push username(dockerid)/imagename

Example:
docker push prashamsabadra/knowledgejunction:latest

here please note - "prashamsabadra" is my docker id / username

  • Pulling image from registry :
docker pull <image name>

Example : 
docker pull ubuntu => downloads locally image ubuntu

We have very good series of Docker / Kubernetes, trying to simplifying the concepts, please have a look once – https://knowledge-junction.in/category/containerization/

Thanks for reading 🙂 If you think its useful, kindly please like and share 🙂

HAVE A GREAT TIME AHEAD 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.