Docker Registry (original) (raw)

Last Updated : 14 Mar, 2026

Docker Registry is a centralized storage and distributed system for collecting and managing Docker images. It acts as a server-side application that stores, manages, and distributes container images across environments. It is an essential component in the containerization workflow for streamlining the deployment and management of applications. Features of a Docker Registry are :

Docker hub registry

Docker Registry

Different Types of Docker Registries

Basic commands for Docker registry

The following are the basic commands for Docker registry:

**1. Starting your registry

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

starting_your_registry

**2. Pulling some images from the hub

docker pull ubuntu:latest

docker_pull_ubuntu_latest

**3. Tagging that image and point to your registry

docker image tag ubuntu:latest localhost:5000/gfg-image

tagging_the_images_and_point_to_registry

**4. Pushing the image

docker push localhost:5000/gfg-image

pushing_docker_images_to_localhost

**5. Pulling that image back

docker pull localhost:5000/gfg-image

pulling_the_docker_image

**6. Stop the registry

docker container stop registry

stop_the_docker_registry

**7. Stop the registry and remove the data

docker container stop registry && docker container rm -v registry

stop_the_registry_and_remove_the_data

Docker Registry Working

A Docker Registry stores and distributes Docker images. Users can push images to the registry and pull them when needed.

DOCKER

Docker Registry Working

Registries Importantance

Docker registries are a cornerstone of modern software development for several key reasons: