push: Upload a local image to a registry so others (or your cluster) can pull it. docker push uploads a local image to a registry, so servers, colleagues or a Kubernetes cluster can pull it. The image must be tagged with the registry address first, such as registry.example.com/team/app:1.4. In most setups, your CI pipeline pushes images automatically after a successful build, and deployment tools pull them from there.
Tag every pushed image with something traceable, like the Git commit hash or a version number, rather than only latest. Then you always know which code is running, and you can roll back by deploying an earlier tag. Only registries with access control should hold private application images, because an image usually contains your full source code and dependencies.
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.