Container Image
Also known as: Docker image, OCI image
Immutable, layered package of an application's files, dependencies and metadata that serves as the template from which containers are started.
A container image is the static artifact from which a running container is created, much as a program file is the template for a running process. It contains a root file system with the application, its libraries and supporting tools, together with metadata such as the default command, environment variables and exposed network ports. Images are read-only: when a container starts, the runtime adds a thin writable layer on top, so many containers can share one image while keeping their own changes separate.
Images are built in layers. Each instruction in a build file, such as a Dockerfile, typically adds a layer recording the files it changed, and layers shared by several images are stored and transferred only once. The Open Container Initiative image specification standardizes this format so that images built by one tool run under others, including Docker, containerd, Podman and Kubernetes. Images are kept in registries and addressed either by a human-readable tag, such as a version number, or by a content digest, a cryptographic hash that identifies one exact image.
Because an image bundles everything an application needs, it is central to repeatable deployment: the same image tested in a CI/CD pipeline is the one run in production. That bundling also means images inherit vulnerabilities from their base layers, so teams scan them, rebuild them when dependencies are patched and favor minimal base images that contain little beyond the application. Tags can be moved to point at different content, so security-conscious deployments pin images by digest, sign them and publish a software bill of materials describing their contents.
Key points
- A container image is a read-only template; a running container adds a writable layer on top of it.
- Images are built from stacked layers that can be shared and cached between images.
- The Open Container Initiative image specification lets images move between different container tools.
- Pinning images by digest guarantees that exactly the same content is deployed every time.
Related entries
Container
Lightweight, isolated package that bundles an application with its dependencies and configuration so it runs consistently across environments.
Docker Engine
Open-source container runtime and toolset that builds, ships and runs applications in isolated Linux containers from portable images.
Kubernetes
Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.
CI/CD Pipeline
Automated sequence of stages that builds, tests and releases software changes, combining continuous integration with continuous delivery or deployment.
Immutable Infrastructure
Approach in which servers and other components are never modified after deployment; changes are made by replacing them with freshly built versions.
Software Bill of Materials
Machine-readable inventory of the components, libraries and dependencies that make up a piece of software, used to track vulnerabilities and licenses.
Cryptographic Hash Function
Function that maps data of any size to a fixed-length digest in a way that is practically impossible to reverse or to match with different input.
Referenced by
Other entries that discuss or point to Container Image.