Build a Raspberry Pi Arch Linux Docker Image
I tried to pull the armv7/armhf-archlinux docker image, however I received an error stating I had an "invalid tar header". I noticed that the command used to generate the docker image was for the Freescale Utilite, not the Raspberry Pi. Luckily generating the proper docker image isn't difficult. This is the process I used to create my Raspberry Pi Arch Linux ARM docker image. This is also helpful if you want to have aarch64 containers with the Raspberry Pi 3 image.
- Download the latest Arch Linux ARM build for the Raspberry Pi 2:
curl -L http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz -o ArchLinuxARM-rpi-2-latest.tar.gz
- Unzip the tarball, do not untar it:
- Import the Arch Linux ARM tarball as the armv7/armhf-archlinux image:
sudo docker import ArchLinuxARM-rpi-2-latest.tar armv7/armhf-archlinux