Docker Hub: Docker's default public registry. When you pull "nginx", you are really pulling docker.io/library/nginx. Docker Hub is Docker's default public image registry. When you run docker pull nginx, Docker actually fetches docker.io/library/nginx from Docker Hub. It hosts official images for languages, databases and web servers, maintained by Docker or the projects themselves, plus millions of images from anyone. Official and verified images are generally safe starting points. Random images from unknown accounts may contain outdated software or worse.
Docker Hub limits how many images anonymous and free users can pull in a period. Busy CI pipelines can hit that limit and fail unexpectedly. Logging in, using a pull-through cache, or mirroring the base images you use into your own registry avoids this. For private application images, use a private registry rather than a public Docker Hub repository.
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.