Unable to run a docker container on Mac M1

I created my container with a windows computer, no issue at all when run in docker for windows , I’m try to run it now on Mac with M1 but I get the error : 2024-06-20 11:00:29 rosetta error: Rosetta is only intended to run on Apple Silicon with a macOS host using Virtualization.framework with Rosetta mode enabled

reading on different forum is suggested to turn on the settings : Use Rosetta for x86_64/amd64 emulation on Apple Silicon , that what I did on my docker but the issue still there. any solution and reason why docker for Mac can run my container? I understood it has build on amd64 and now I’m try to running it on ARM but rosetta should take care of that or I’m wrong?

the container it only a simple node app says hello world

Thanks a lot

Maybe is because of this bug?