Build Multi Platform Docker Images with Buildx

Intro I developed a node.js application and i wanted to run it on Raspberry Pi as docker container. So I built a Docker image using docker build on my machine (Lubuntu 23.04 x64) and pushed it to the Docker registry. Then I logged into Raspberry Pi and pulled the image from docker registry and run the docker container. But it failed to run with exit code 139. Problem Traditionally, when you build a Docker image using docker build, it builds the image for the architecture of the machine you’re running the docker build command on....

August 27, 2023 · 4 min · 670 words · CodeGenos