tag: A human-readable label on an image, usually a version. The part after the colon in name:tag. Defaults to "latest" if omitted. A Docker tag is the readable label after the colon in an image name, such as 1.4.2 in myapp:1.4.2. Without a tag, Docker assumes latest. Tags are pointers, not guarantees. The same tag can be moved to a new image at any time, which is why latest says nothing about what is actually inside. Two servers pulling myapp:latest an hour apart can end up running different code.
Use meaningful, unique tags for anything you deploy: a version number, a Git commit hash, or both. Then you always know what runs where, and rolling back means deploying the previous tag. One image can carry several tags at once, such as 1.4.2, 1.4 and stable. For complete certainty, deploy by digest, which never changes.
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.