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:
Default Registry Port : 5000
Requirements:
The Registry is compatible with Docker engine?version 1.6.0 or higher.
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:
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).
Step 4 : Download docker image from internet or create any docker custom docker image.
Step 5: Tag the docker image with local registry name and then push the image to local registry.
Step 6 : Delete/Untag the downloaded docker image.
Step 7 : Deploy a docker container with the image present in local registry.
Voila, we're all set.
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
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 ?
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 :) !!!!