Docker Private Registry Setup

Docker Private Registry Setup

What is Registry?

The Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images.

Why use it?

You should use the Registry if you want to:

  • tightly control where your images are being stored
  • fully own your images distribution pipeline
  • integrate image storage and distribution tightly into your in-house development workflow

Default Registry Port : 5000

Requirements:

The Registry is compatible with Docker engine?version 1.6.0 or higher.

No alt text provided for this image

Deploying a registry server:

Before we can deploy a registry server/container, we need to install docker on the host machine. A registry is an instance of the?registry?image.

Use the command below to start the registry container:

$ docker run -d -p 5000:5000 --restart=always --name registry registry        


Step 1 : Configure a Private Docker Registry

Add the following configuration in the?/etc/docker/daemon.json:

No alt text provided for this image


Step 2 : Create a docker instance of registry

$ docker run -d -p 5000:5000 --restart=always --name registry registry        

Step 3 : Tag the images with the registry name (as mentioned in insecure registries).

No alt text provided for this image
No alt text provided for this image

Step 4 : Download docker image from internet or create any docker custom docker image.

No alt text provided for this image
No alt text provided for this image


Step 5: Tag the docker image with local registry name and then push the image to local registry.

No alt text provided for this image

Step 6 : Delete/Untag the downloaded docker image.

No alt text provided for this image

Step 7 : Deploy a docker container with the image present in local registry.

No alt text provided for this image

Voila, we're all set.






Kowshik G Y

Digital Marketing Associate | Passionate About Digital Transformation & Audience Engagement

1 年

Register for our latest webinar on Introduction to kubernetes and container orchestration. (oct) Registration Link: https://lnkd.in/gdw7g-nM #docker #kubernetes #course #registernow

回复
Akhilesh Patel

Immediate Joiner | DevOps Engineer | AWS Certified

1 年

Great ??, suppose that we have one machine running on aws, and docker private Registry setup on local machine now we need a Jenkins pipeline for particular image on your docker private Registry so can I configure local to aws or not ?

回复
Rahul Uppu

DevOps Engineer Expertise in Managing On-Premises Clusters | Kubernetes | Docker | RKE (Multi-Master) Monitoring On-Premises Infrastructure | Grafana | Prometheus Experience in Self-Healing Storage Solutions |Rook-Ceph

1 年

That’s really helpful :) !!!!

要查看或添加评论,请登录

Anurag Vashishth的更多文章

社区洞察

其他会员也浏览了