Image Registry in Docker

From the Docker cheat sheet ยท Image Management ยท verified Jul 2026

Image Registry

Work with Docker registries and manage image distribution

bash
# Login to registry
docker login
docker login docker.io
docker login -u user -p pass registry.io

# Logout
docker logout
docker logout registry.io

# Search images
docker search nginx
docker search --limit 10 nginx
docker search --filter stars=100 nginx

# Registry operations
docker pull registry.io/namespace/image:tag
docker push registry.io/namespace/image:tag

# Local registry
docker run -d -p 5000:5000 --name registry registry:2
docker tag myapp localhost:5000/myapp
docker push localhost:5000/myapp
๐Ÿ”’ Always use HTTPS for production registries
๐Ÿ’ก Tag images with registry URL
๐Ÿ“Œ Local registry useful for testing
โœ… Implement authentication for private registries

More Docker tasks

Back to the full Docker cheat sheet