Base Image
Definition
A base image is the starting image named in a Dockerfile's FROM line, providing the operating system userland and runtime that every later layer builds on.
What Is a Base Image?
Every container image is built in layers, and the base image is the first of them. It usually contains a Linux userland and often a language runtime such as Python, Node.js or a JDK. Everything in it is inherited by the final image.
How a Base Image Works
When a Dockerfile starts with FROM python:3.12, the build pulls that image and adds new layers on top. Vulnerabilities in the base image appear in every image built from it, which is why replacing a widely used base image removes CVEs from many services at once.
Base Image Examples
- Official Docker Hub images such as
python,nodeandnginx - Distribution images such as Debian, Ubuntu, Alpine and UBI
- Hardened equivalents from Echo, Chainguard, Docker Hardened Images and others
Related ranking
Related terms
Distroless ImageA distroless image is a minimal container image that contains an application's runtime dependencies but no shell, package manager or other operating system utilities.Container Attack SurfaceThe container attack surface is the set of components, interfaces and privileges in a container image and its runtime that an attacker could use to compromise or move through a workload.CVE (Common Vulnerabilities and Exposures)A CVE is a unique, public identifier for a known security vulnerability, such as CVE-2021-44228, assigned through the CVE Program by a CVE Numbering Authority.CVE Remediation SLAA CVE remediation SLA is a vendor's written commitment to fix newly published vulnerabilities in its images or packages within set timeframes by severity.