Skip to content

About

Docker base image for Raspberry Pi OS

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

raspberry-pi-os: Docker base image for Raspberry Pi OS

Docker Pulls CI/CD License AI

For Raspberry Pi OS, AKA Raspbian AKA RPi.

SUMMARY

Raspberry Pi supports embedded development.

Docker supports cloud development.

¿Por qué no los dos?

EXAMPLE

% docker run --rm --platform linux/arm64 n4jm4/raspberry-pi-os raspinfo
No GPIO chips found

Docker containers don't normally feature embedded hardware like GPIO pins! But we can still test a lot of functionality, such as ARM compatibility for general applications.

% docker run --rm --platform linux/arm64 -it n4jm4/raspberry-pi-os bash

# apt update
# apt install -y file gcc

# printf "#include <stdio.h>\nint main(){ printf(\"Hello World\\\n\"); return 0; }\n" >hello.c

# cat hello.c
#include <stdio.h>
int main(){ printf("Hello World\n"); return 0; }

# gcc -o hello hello.c

# file hello
hello: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=b4b84ec877bfaea87e511fda2f0dca6f1effd947, for GNU/Linux 3.7.0, not stripped

# ./hello
Hello World

DOWNLOAD

docker pull n4jm4/raspberry-pi-os

For details on building from source, see DEVELOPMENT.

Images

Raspberry Pi OS identifies versions by Debian base distribution.

Distribution Tags
trixie trixie, latest
bookworm bookworm

RUNTIME REQUIREMENTS

Recommended

  • a UNIX-like environment (e.g. WSL)

RESOURCES

Prior art, personal plugs, and tools for developing portable applications.

🍇

About

Docker base image for Raspberry Pi OS

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages