I am experiencing problems with a very basic use-case. My image works fine when I do a local-push using
balena push uuid.local --emulated.
But when I deploy it with
balena deploy myApp --logs --source . --emulated --build --nocache my container won’t start due to the following error:
standard_init_linux.go:207: exec user process caused “exec format error”
My Dockerfile is completely basic. And inside the /html folder there is just one static html file.
COPY /html /usr/share/nginx/html
As far as I know the error indicates it targets the wrong architecture. But I am using --emulated.
I do see this in the build/deploy logs:
[Info] Docker Desktop detected (daemon architecture: “x86_64”)
[Info] Docker itself will determine and enable architecture emulation if required,
[Info] without balena-cli intervention and regardless of the --emulated option.
Also tried building and deploying in separate steps with specifying device and aarch with no results.
balena build --logs --emulated --deviceType raspberrypi4-64 --arch aarch64 --build --no-cache
balena deploy myApp imageuuid