image configuration
The small document inside an image that records its platform, default command, user, environment and layer list.
In more detail
Defined by the OCI image specification, the configuration holds fields such as Os, Architecture, Cmd, Entrypoint, Env, User, WorkingDir and rootfs. docker image inspect shows it. It is addressed by its own digest and referenced from the image manifest.
Example
docker inspect alpine:3.20 -f '{{.Config.Cmd}}' # [/bin/sh]Related terms
- image manifest — A small JSON document that lists the configuration and layers making up one image, each by digest.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
- CPU architecture — The family of instructions a processor understands, such as 64-bit Intel (amd64) or 64-bit Arm (arm64).
- docker inspect — Prints everything Docker knows about a container or image as JSON: state, configuration, mounts, network settings and more.
Taught in
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Pull And Inspect A Third Party Image — Docker Architecture & Production Containers
- ARG, ENV, LABEL, EXPOSE And VOLUME — Docker Architecture & Production Containers
- Multi Stage Builds, Targets And Build Secrets — Docker Architecture & Production Containers
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- Port Publishing, Localhost And Network Troubleshooting — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers