Use it when pulling, pushing or choosing images, or when an image pull fails.
Images & Registries
Images are layered, read-only filesystems plus metadata, stored in registries (Docker Hub, GHCR, ECR, Harbor) and referenced by name:tag or immutable digest.
1. docker pull <image> / pod events — error (auth, not found, rate limit, TLS)?
2. Digest: docker image inspect <img> --format '{{.RepoDigests}}'.
3. Registry login: docker login <registry> / imagePullSecrets.
4. Scan: trivy image <img>.
5. Push to the intended repository.
build → tag → push to registry → pull by tag/digest → run
A successful pull does not prove the intended version was selected, a familiar tag does not prove immutability, and a signed image does not prove its runtime configuration or application behavior is safe. Mirror/cache behavior can also make stale content look like an origin issue. Preserve the first divergent observation and repeat the same bounded verification after remediation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Containers owns image/registry mechanics. Security owns policy decisions about trust, signing requirements and vulnerability acceptance; Automation owns promotion pipelines.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
Resolve the exact registry/repository reference, compare tag and digest, inspect authentication scope, pull the image, and verify the digest that reached the runtime. For production promotion, preserve provenance/signature/SBOM metadata separately from the fact that a registry accepted a push.
Step 2 Failure signatures and limits Narrow the fault
A successful pull does not show the intended version was selected, a familiar tag does not show immutability, and a signed image does not show its runtime configuration or application behavior is safe. Mirror/cache behavior can also make stale content look like an origin issue.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
A Dockerfile defines the build steps for an image; ordering, base image choice and multi-stage builds decide size, cache use and security.
Subtopic Image Tags and DigestsA tag is a movable name for an image; a digest (sha256) identifies exact image content and never changes.
Subtopic Private Registry AuthenticationPulling from a private registry requires credentials stored for the client (docker login) or provided to Kubernetes as an image pull secret.
Subtopic Image Vulnerability Scanning and SigningScanners compare image packages with vulnerability databases; signatures and attestations prove who built an image and from what.
Pin production images by digest or immutable tags. Use a private registry or mirror to avoid rate limits. Scan and sign images before deployment.
docker image ls --digests— local images with digestsdocker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
ReferenceWhat it is1 section · depth on demand
Operating model
Images & Registries covers how immutable image content is assembled, named, transferred and trusted. Layers are content-addressed building blocks; tags are mutable names, while digests identify specific image manifests/content. Registry access therefore has both transport/authentication concerns and supply-chain identity concerns.
ReferenceHow it works1 section · depth on demand
In depth
Images package an application with everything it needs to run, built from a Dockerfile (or similar) as a stack of read-only layers. Registries store and distribute them. Image design affects size, security and how reproducible deployments are.
Good image practice:
| Practice | Reason |
|---|---|
| Small base images (distroless, alpine, slim) | Fewer vulnerabilities, faster pulls |
| Multi-stage builds | Build tools stay out of the final image |
| Pinned base versions or digests | Reproducible builds |
Non-root USER | Less privilege at runtime |
| No secrets in layers | Layers are readable by anyone who can pull |
| Scan and sign | Trivy/Grype, cosign |
| Immutable tags, deploy by digest | What runs equals what was tested |
FROM python:3.12-slim AS build
WORKDIR /src
COPY requirements.txt .
RUN pip install --prefix=/install -r requirements.txt
FROM python:3.12-slim
COPY --from=build /install /usr/local
COPY app/ /app
USER 10001
ENTRYPOINT ["python", "/app/main.py"]
docker build -t registry.example.com/net-api:1.4.0 .
docker image inspect --format '{{.RepoDigests}}' registry.example.com/net-api:1.4.0
ReferenceImportant terms & boundaries1 section · depth on demand
Scope map
- Image layers and copy-on-write
- Tags vs immutable digests
- Pull/push workflows
- Registry authentication
- Private registries and mirrors
- Image provenance, signing and SBOM boundaries
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: You are logged in to the registry. Replace registry and repository names.
docker build -t registry.example.com/team/app:1.4.2 .
docker push registry.example.com/team/app:1.4.2
docker pull registry.example.com/team/app@sha256:<digest>Expected output
docker image inspect registry.example.com/team/app:1.4.2 --format '{{index .RepoDigests 0}}'Expected state: The local tag resolves to the same digest the registry returned on push.
registry.example.com/team/app@sha256:3f1c9a0e5b7d2c4a8e6f1b0d9c7a5e3f2b1d0c9a8e7f6d5c4b3a2f1e0d9c8b7aA tag can be moved; the digest cannot. Deploy by digest when you must know exactly which image runs. Illustrative authored output: field layout matches the tool, values will differ in your environment.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.
Basis: https://specs.opencontainers.org/image-spec/ · confidence 92%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Images & Registries verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Images & Registries.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Image layers and copy-on-write | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Tags vs immutable digests / Pull/push workflows | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Registry authentication | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Private registries and mirrors | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Containers owns image/registry mechanics. Security owns policy decisions about trust, signing requirements and vulnerability acceptance; Automation owns promotion pipelines.