User avatar
socialdefect
Posts: 110
Joined: Mon Jun 25, 2012 9:02 pm
Location: Tilburg, the Netherlands
Contact: Website

Docker image for Raspbian (armhf) on amd64 host

Sat Oct 17, 2015 2:57 pm

To make developing and testing software for the Pi a little easier I've created a Docker image that can be run on a Docker instance on a 64bit host system. This way you can take advantage of your fast workstation while still working on a armhf raspbian system.

The image uses qemu-user-static so you will need to install that package in order to use it. The image has been created on a Debian jessie amd64 host but should run on any 64bit os that has qemu-user-static installed.

Installation:

1) Install docker (Check here for details)
2) Run:

Code: Select all

docker pull socialdefect/raspbian-jessie-core
3) To Create a new container and open a shell using the image run:

Code: Select all

docker run socialdefect/raspbian-jessie-core /bin/bash
That's all!
== If it's not broke... I'm not done fixing it! ==

mrjogo
Posts: 1
Joined: Tue Feb 09, 2016 6:04 am

Re: Docker image for Raspbian (armhf) on amd64 host

Tue Feb 09, 2016 6:25 am

This is great! I've been playing around with getting Raspbian running in a Docker guest to no avail. Can you post details on how you created the base image?

Thanks!

User avatar
socialdefect
Posts: 110
Joined: Mon Jun 25, 2012 9:02 pm
Location: Tilburg, the Netherlands
Contact: Website

Re: Docker image for Raspbian (armhf) on amd64 host

Tue Feb 09, 2016 5:27 pm

It's quite simple. A docker image is just a chroot filesystem packaged with Tar.

To automate making a chroot FS I made a script that might help you out.
viewtopic.php?f=41&t=76178

Creating and importing a docker image from a chroot can be done like this: https://docs.docker.com/engine/userguid ... -using-tar
== If it's not broke... I'm not done fixing it! ==

Return to “Other projects”