Docker images for Arch Linux on x86_64, AArch32 (ARMv7-A) and AArch64 (ARMv8-A). Built using native pacman and Docker multi-stage builds. Built daily by GitHub Actions on publicly visible infrastructure using QEMU emulation to support ARM.
The images are on Docker Hub. Use the convenient docker run
:
docker run --rm -ti lopsided/archlinux
Instead of using the multi-arch container above, you can also get the architecture specific image directly:
docker run --rm -ti lopsided/archlinux-arm32v7
Tag | Update | Type | Description |
---|---|---|---|
latest | daily | minimal | Minimal Arch Linux with pacman support |
devel | daily | base-devel | Arch Linux with base-devel installed |
The image is generated from a freshly built pacman rootfs. Pacman has configured to delete man pages and clean the package cache after installation to keep images small.
If you want to contribute, get to the issues-section of this repository.
Simply add the TZ
environment-variable and define it with a valid timezone-value.
docker run -e TZ=America/New_York lopsided/archlinux
- Docker with experimental mode on (required for squash)
- sudo or root is neccessary to setup binfmt for Qemu user mode emulation
- Prepare binfmt use with Qemu user mode using
sudo ./prepare-qemu
- Run
BUILD_ARCH=<arch> ./build
to build- Use
BUILD_ARCH=amd64
for x86_64 - Use
BUILD_ARCH=arm32v7
for ARMv7 Aarch32 - Use
BUILD_ARCH=arm64v8
for ARMv8 Aarch64
- Use
If you want to push the images, run ./push
. But be aware you have no push access to the repos! Edit the scripts to push to custom Docker Hub locations!
Since the image depends on itself, the question which arises is how this all started. The initial containers have been created using the tarballs provided by the Arch Linux ARM project. I used the following steps to bootstrap for each architecture:
gzip -d ArchLinuxARM-armv7-latest.tar.gz
docker import ArchLinuxARM-armv7-latest.tar lopsided/archlinux-arm32v7:latest
Ideas have been taken from already existing Docker files for Arch Linux. However, this repository takes a slightly different approach to create images.
- https://github.com/agners/archlinux-docker
- Limited architectures
- Duplication of Dockerfiles
- Only built weekly
- No image with base-devel preinstalled
- https://github.com/archlinux/archlinux-docker
- Focus on Arch Linux for x86
- Uses docker run in priviledged mode to build images
- https://github.com/lopsided98/archlinux
- Uses prebuilt tarballs which contain packages not required in containers