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 with your serverip ( system's IP)
 http://<serverip>: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


Docker Registry in Detail

AWS ECR

Comments