Skip to content

Customization Base Images

Stefan Kuhn edited this page Jul 1, 2026 · 2 revisions

Custom base images

Custom base images let you build and update base layers locally. They live under ~/.aicage-custom/base-images/ and show up alongside built-in bases during selection.

If a custom base name matches a built-in base name, the custom base overrides it.

Directory layout

~/.aicage-custom/base-images/<BASE>/
├─ base.yml (or base.yaml)
└─ Dockerfile

base.yml

from_image: debian:bookworm
base_image_distro: Debian
base_image_description: "Debian base image"
architectures:
  - amd64
  - arm64

architectures is required. Use amd64 and/or arm64.

Only bases matching the current host architecture are offered. For example, an amd64-only base is not shown on arm64 hosts.

Dockerfile

The Dockerfile builds the custom base image. The build arg FROM_IMAGE is provided:

ARG FROM_IMAGE
FROM ${FROM_IMAGE} AS from_image

Keep the build non-interactive and deterministic.

Examples

Clone this wiki locally