Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) #27

Open TRaSH- opened 2 years ago

TRaSH- commented 2 years ago

When running sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose:latest container1 container2

we're getting the following error

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

i did a google search but it seems something is missing in the build command, hope it's a easy fix

federicoalvarez-github commented 1 year ago

Same here. I run it on a RPi4 64bits and runs OK, if I run it on a Pi Zero W, which is 32bits, it gives the same error. Surely there is something related to that, but I could not fix it. I tryed playing with "--platform=linux/arm/v6" and such, but no luck. Hope someone gets it!

My error is: "WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/arm/v6) and no specific platform was requested"