Docker Registry

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

Example

1. Create a container with registry docker image

 docker container run -d -p 5000:5000 --name local_registry registry

2. Access the container on 5000 port with your serverip ( system's IP) 

 http://<serverip>:5000/v2/_catalog

3. Inspect the container

 docker container inspect local_registry

4. Clone the ubuntu image to localhost:5000/ubuntu:latest

 docker image tag ubuntu localhost:5000/ubuntu:latest

5. Push the image to docker registry

 docker image push localhost:5000/ubuntu

6. 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

Comments

Popular posts from this blog

Terraform

Scrum Master Interview help - Bootcamp

Kubernetes