Document

SUBSCRIBE TO GET FULL ACCESS TO THE E-BOOKS FOR FREE 🎁SUBSCRIBE NOW

Professional Dropdown with Icon

SUBSCRIBE NOW TO GET FREE ACCESS TO EBOOKS

Docker Registry

Docker Registry

A registry is a storage and content delivery system, holding named Docker images, available in different tagged versions.

  1. Create a container with registry docker image
 docker container run -d -p 5000:5000 --name local_registry registry
  1. Access the container on 5000 port .
curl localhost:5000/v2/_catalog
  1. Inspect the container
 docker container inspect local_registry
  1. Clone the ubuntu image to localhost:5000/ubuntu:latest
 docker image tag ubuntu localhost:5000/ubuntu:latest
  1. Push the image to docker registry
 docker image push localhost:5000/ubuntu
  1. Pull the image with following command ( you can remove the image first and then you can run below command to restore the image)
 docker image pull localhost:5000/ubuntu

Note: 

If you want to change the port the registry listens on within the container, you can use the environment variable REGISTRY_HTTP_ADDR to change it. This command causes the registry to listen on port 5001 within the container:


docker container run  -d -e REGISTRY_HTTP_ADDR=0.0.0.0:5001 -p 5001:5001 –name local_registry registry

Docker Registry in Detail

AWS ECR

Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *