Build My Own Raspbian Docker Image

Posted on
2016-11-04
|

It’s great to have Docker on Raspberry Pi, and there’s a blog about it.

But one thing I found is that Raspberry Pi is based on ARM CPU, thus do not support x86/x64 instructions. Any Docker image build for x86/x64 won’t work. And, I didn’t find any official Docker image built for Raspberry Pi. resin/rpi-raspbian is widely used and also used by Docker project is a good candidate and is lightweitht, but I still want to use an official one. So, I decided to build one myself.

Download Raspbian

I have done this already, download and unzip the image. Now I got 2016-09-23-raspbian-jessie-lite.img.

Create a tarball archive containing files from official Raspbian

2016-09-23-raspbian-jessie-lite.img is an IMG file which contains raw dump of disk, and I can mount it under Linux.