registry: A server that stores and distributes images. Docker Hub is the public default; you can run private registries (Harbor, ECR, GHCR). A container registry is a server that stores and distributes Docker images. Docker Hub is the public default. Private registries include GitLab's and GitHub's container registries, cloud registries such as AWS ECR and DigitalOcean's, and self-hosted options like Harbor.
Your build pipeline pushes images to the registry, and servers or Kubernetes pull them when deploying. Image names include the registry address, such as registry.example.com/team/app:1.4.
What should you keep in mind with registry?
Keep application images in a private registry with access control, because they contain your code. Give your cluster read-only credentials to pull. Set up a cleanup policy, since every build adds an image and storage grows fast. Many registries can also scan images for known vulnerabilities, which is a useful extra check before deploying.
Use this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.
Use this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.
Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.