Search code examples
dockerraspberry-piraspbian

How to run amd64 image Docker on arm (Raspberry OS)


I have used the docker image Rotating TOR on amd64 architectures with no problem. Now I try to run the same image on Raspberry OS (arm 32 bit) but I have not succeeded.

This is the error when executing the image:

$ docker run -d -p 5566:5566 -p 4444:4444 --env tors=25 mattes/rotating-proxy
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested

I have tried adding platform linux/adm64 after the run but the image does not work either.

Does anyone know how to run this image on Raspberry OS or is there just no way to do it? Thanks for the help.


Solution

  • That won't work

    Docker is a virtualisation platform, not an emulator. It cannot be used to run images from one architecture on another (AMD64 on ARM or vice versa). You need a matching image (or install the ARM version directly on the PI, if there is one).