Question
I use a the BALENA_MACHINE_NAME
variable to import the correct base image for my Raspberry Pi Zero.
Still the build tells that there is a version mismatch:
The requested image platform (linux/arm/v6) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
How can this happen if BALENA_MACHINE_NAME
is supposed to match the correct version?
Dockerfile.template
FROM balenalib/%%BALENA_MACHINE_NAME%%-python:3.11.2-run
RUN apt update -y; apt upgrade -y
RUN apt -y install build-essential
RUN pip install rpi-gpio==0.7.1 gpiozero==1.6.2
ENV GPIOZERO_PIN_FACTORY=rpigpio
Output
irrigation] Step 1/9 : FROM balenalib/raspberry-pi-python:3.11.2-build
[irrigation] ---> 7970438a150c
[irrigation] Step 2/9 : RUN apt update -y; apt upgrade -y
[irrigation] ---> [Warning] The requested image's platform (linux/arm/v6) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested