Sign inSign up

schachr/raspbian-stretch

By schachr

•Updated over 6 years ago

Raspbian image for docker on raspberry pi. Tested on an OrangePi+2E and Raspberry Pi 2.

Image
8

10K+

schachr/raspbian-stretch repository overview

⁠raspbian-stretch

Raspbian⁠ image for Docker on Raspberry Pi. Built and Tested on an Raspberry Pi 2 running raspbian stretch.

⁠Purpose

This is a minimal image of raspbian stretch. You can use this image as a base in Dockerfiles.

⁠Generating

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.

⁠Building

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 .
⁠Automatic Build details

There is an automatic build dependency to the github repository https://github.com/schachr/docker-raspbian-stretch⁠ as well. The archive will receive updates on a regular basis to ensure that the image is up to date. All you need to do is to pull it (docker pull schachr/raspbian-stretch:latest) and recreate the container based on this image.

⁠Running

This image does not do anything fancy, but if you want to test it out, run the following:

$ docker run --name raspbian -it schachr/raspbian-stretch:latest /bin/bash

Tag summary

Content type

Image

Digest

Size

54.3 MB

Last updated

over 6 years ago

docker pull schachr/raspbian-stretch