Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethiraj/rpi-demo


https://github.com/ethiraj/rpi-demo

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

## How to build docker images on Windows and MacOS machines that can run on Raspberry Pi

### Introduction 

A few weeks ago, I started setting up k3s cluster on Raspberry Pi and I was trying to deploy one of my docker image. Soon realized that I can't run my existing docker image on Raspberry Pi.

Standard docker build supports only for the architecture and operating system that the user invoking. By default if you build docker image using 'docker build ..' it will not work in Raspberry PI or any ARM.

There are two ways to build a multi-arch image 
* docker manifest
* docker buildx

Using docker manifest you will have to build and push the images for each architecture to the DockerHub, this is little involved so I am using buildx which is very simple. 
Docker and Arm have worked together to simplify software development and deployment across a wide variety of devices ranging from IoT to edge gateways to cloud servers by enabling multi-architecture support.

 If you are doing software development on Windows or MacOS machines and want to create docker images that cam run on Raspberry Pi(ARM servers) , this post will be helpful to build and deploy docker images on Raspberry Pi(or any ARM Servers).