Skip to content

Commit badc440

Browse files
committed
Clarify build instructions when targeting different arch.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 92e6731 commit badc440

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

_posts/2025-11-20-containerizing-applications.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: From Embedded App to Container
33
author: troglobit
44
date: 2025-11-20 10:00:00 +0100
5-
last_modified_at: 2025-11-21 05:37:00 +0100
5+
last_modified_at: 2026-01-23 11:00:00 +0100
66
categories: [howto]
77
tags: [containers, docker, podman, embedded, migration]
88
---
@@ -231,9 +231,18 @@ CMD ["/usr/local/bin/temp-monitor.py"]
231231
Build the image:
232232

233233
```console
234+
# If your dev machine matches target (e.g., both x86_64, or both ARM64)
234235
$ docker build -t myapp/temp-monitor:v1.0 .
236+
237+
# If your dev machine differs from target (e.g., x86_64 PC → Raspberry Pi 4B)
238+
$ docker build --platform linux/arm64 -t myapp/temp-monitor:v1.0 .
235239
```
236240

241+
> **Important:** Raspberry Pi 4/5 and most modern ARM boards use `linux/arm64`.
242+
> Older 32-bit ARM boards use `linux/arm/v7`. PC-based Infix systems use
243+
> `linux/amd64`. When in doubt, run `uname -m` on your Infix device.
244+
{: .prompt-warning }
245+
237246
Export as OCI archive:
238247

239248
```console

0 commit comments

Comments
 (0)