Supply Chain Security Index
Home / Glossary / Base Image

Base Image

Updated Written by Dani N.Reviewed by Shir A.Methodology
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

Related ranking

Related terms