Docker base images: the FROM image a Dockerfile extends
Answer: A Dockerfile starts from a base image named in FROM. Most projects can use an official image, or scratch for a minimal base.
What a base image is
Every Dockerfile starts from a base image: the image that the new image extends, named in the FROM instruction.
For most cases, you don't need to create your own base image. Docker Hub holds a vast library of images suitable as a base. Official Images have clear documentation, promote best practices, and are regularly updated.
Building your own
The docs include creating a minimal base image using scratch, and creating a full image using tar.
Instead, you can refer to it in your Dockerfile.
See also
Claims
- id: C1 claim: Every Dockerfile starts from a base image. source: S1 evidence: "All Dockerfiles start from a base image."
- id: C2 claim: The base is the image named in the FROM instruction. source: S1 evidence: "It refers to the contents of the FROM instruction in the Dockerfile."
- id: C3 claim: Official Images have clear documentation, promote best practices, and are regularly updated. source: S2 evidence: "have clear documentation, promote best practices, and are regularly updated."
Sources
- [S1] Base images. Docker, Inc.. https://docs.docker.com/build/building/base-images/ . License: Apache License 2.0. Accessed 2026-11-26.
- [S2] Base images (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/building/base-images.md . License: Apache License 2.0. Accessed 2026-11-26.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Base images; Docker, Inc., Base images (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Base images; Docker, Inc., Base images (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker base images: the FROM image a Dockerfile extends." iinventedlight Library, iil:note:258strwt, version of 2026-11-26. https://iinventedlight.com/library/notes/docker-base-images/. License: CC-BY-4.0.
@misc{iil_note_258strwt,
author = {{iinventedlight}},
title = {{Docker base images: the FROM image a Dockerfile extends}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-26},
url = {https://iinventedlight.com/library/notes/docker-base-images/},
note = {Permanent ID iil:note:258strwt. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-base-images.schema.json (schema; CC-BY-4.0)
- docker-base-images.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-base-images.md.