docker-archlinuxarm icon indicating copy to clipboard operation
docker-archlinuxarm copied to clipboard

Docker image for Arch Linux (multiarch ARM64 + AMD64, daily updated with GitHub Actions)

Arch Linux Docker Image (Multiarch)

Build and Push

This is the Docker image for Arch Linux ARM but for compatibility some other targets are also included. All images are built on GitHub Actions automatically.

The supported platforms are:

  • linux/arm64
  • linux/amd64
  • linux/arm/v7
  • linux/riscv64

Just just like the official Arch Linux AMD64 image, it has two tags:

  • base (default): installed only the package group base.
  • base-devel: installed the package group base-devel.

And, the pamcan lsign-key is also removed for security reasons.

Under the Hood

The Dockerfile uses a Debian Linux container to install pacman and bootstrap the Arch Linux ARM rootfs. Since pacstrap uses mount, it doesn't run in an unprivileged Docker container. I found the tool pacstrap-docker (LICENSE) as a replacement.

After bootstrapping, the rootfs will be copied to a new container from scratch (aka. an empty file system), which will be commited as the result image.