← All notes

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

Sources

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

Permanent ID: iil:note:258strwt

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.},
}

Markdown

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.

All artifact files (JSON index)

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.