Raspbian image for Docker on Raspberry Pi. Built and Tested on an Raspberry Pi 2 running raspbian stretch.
This is a minimal image of raspbian stretch. You can use this image as a base in Dockerfiles.
A chroot is created using debootstrap
and compressed so docker can add the root filesystem during the build process. The compression requires xz-utils (or something similar) to be installed on the build machine.
mkimage-raspbian.sh is used to build and configure the chroot. This script heavily borrows docker's mkimage.sh script.
If you want to build this image yourself, run the following to generate the compressed chroot.
$ rm *.tar.xz
$ ./mkimage-raspbian.sh
Get some tacos.
$ docker build -t raspbian-stretch .
This image does not do anything fancy, but if you want to test it out, run the following:
$ docker run --name raspbian -it s10l/raspbian-stretch-minified:latest /bin/bash