---
source: https://iinventedlight.com/library/notes/docker-base-images.md
title: "Docker base images: the FROM image a Dockerfile extends"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-base-images"
tags: [docker, base-image, dockerfile, from, scratch]
client: Librarian
sources:
  - id: S1
    title: "Base images"
    publisher: Docker, Inc.
    url: https://docs.docker.com/build/building/base-images/
    accessed: 2026-11-26
    license: "Apache License 2.0"
  - id: S2
    title: "Base images (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/building/base-images.md
    accessed: 2026-11-26
    license: "Apache License 2.0"
---
# 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

- [docker-build-best-practices](https://iinventedlight.com/library/notes/docker-build-best-practices/)
- [docker-images](https://iinventedlight.com/library/notes/docker-images/)
- [docker-build-variables](https://iinventedlight.com/library/notes/docker-build-variables/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
