Skip to content
docker-registry logo

Docker Registry Skill

docker-registry

Private registry setup, image management, and multi-registry operations

SKILL.md

Full skill instructions

Docker Registry Skill

Set up and manage private Docker registries for secure image distribution and management.

Purpose

Deploy private registries, configure authentication, and manage images across multiple registries.

Parameters

ParameterTypeRequiredDefaultDescription
registry_typeenumNodockerdocker/​ecr/​gcr/​acr
authbooleanNotrueEnable authentication
tlsbooleanNotrueEnable TLS

Registry Types

RegistryProviderAuth Method
Docker HubDockerUsername/​token
GHCRGitHubGitHub token
ECRAWSIAM/​CLI
GCRGoogleService account
ACRAzureService principal

Private Registry Setup

Docker Compose

services:
  registry:
    image: registry:2
    ports:
      - "5000:5000"
    volumes:
      - registry_data:/​var/​lib/​registry
      - ./​auth:/​auth
      - ./​certs:/​certs
    environment:
      REGISTRY_AUTH: htpasswd
      REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
      REGISTRY_AUTH_HTPASSWD_PATH: /​auth/​htpasswd
      REGISTRY_HTTP_TLS_CERTIFICATE: /​certs/​domain.crt
      REGISTRY_HTTP_TLS_KEY: /​certs/​domain.key
    restart: unless-stopped

volumes:
  registry_data:

Create Auth File

# Create htpasswd file
docker run --rm --entrypoint htpasswd \
  httpd:alpine -Bbn admin password > auth/​htpasswd

Registry Operations

Login

# Docker Hub
docker login

# GitHub Container Registry
echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin

# AWS ECR
aws ecr get-login-password | docker login --username AWS --password-stdin <account>.dkr.ecr.<region>.amazonaws.com

# Private registry
docker login registry.example.com

Push/​Pull

# Tag for registry
docker tag myapp:latest registry.example.com/​myapp:latest

# Push
docker push registry.example.com/​myapp:latest

# Pull
docker pull registry.example.com/​myapp:latest

Image Management

# List images in registry (API)
curl -X GET https://registry.example.com/​v2/​_catalog

# List tags
curl -X GET https://registry.example.com/​v2/​myapp/​tags/​list

# Delete image (via API)
curl -X DELETE https://registry.example.com/​v2/​myapp/​manifests/<digest>

Multi-Registry Sync

# Copy between registries
skopeo copy \
  docker://source-registry/​image:tag \
  docker://dest-registry/​image:tag

# Sync all tags
skopeo sync --src docker --dest docker \
  source-registry/​image dest-registry/

Cloud Registry Setup

AWS ECR

# Create repository
aws ecr create-repository --repository-name myapp

# Login
aws ecr get-login-password --region us-east-1 | \
  docker login --username AWS --password-stdin <account>.dkr.ecr.us-east-1.amazonaws.com

# Push
docker push <account>.dkr.ecr.us-east-1.amazonaws.com/​myapp:latest

Google GCR

# Auth with service account
gcloud auth configure-docker

# Push
docker push gcr.io/​project-id/​myapp:latest

Error Handling

Common Errors

ErrorCauseSolution
unauthorizedBad credentialsRe-login
manifest unknownImage not foundCheck name/​tag
denied: accessNo permissionCheck IAM/​roles
TLS handshakeCertificate issueAdd to trusted certs

Fallback Strategy

  1. Verify credentials: docker login
  2. Check image exists in registry
  3. Verify network connectivity

Troubleshooting

Debug Checklist

  • Logged in? docker login
  • Image tagged correctly?
  • Registry accessible? curl https://registry/​v2/
  • TLS configured? Check certificates

Usage

Skill("docker-registry")

Assets

  • assets/​docker-compose-registry.yaml - Registry setup
  • scripts/​registry-setup.sh - Setup script

Related Skills

  • docker-optimization
  • docker-ci-cd

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View