'Is there a way to deploy x86 images on a Apple silicon (ARM) using docker stack?

We have a docker stack compose file using services built for x86. To get our dev-setup running locally on my Apple silicon/m1/ARM chip, I tried to deploy the stack using docker stack deploy. The services won't run and fail citing the unsupported architecture on the node. Is there a way to emulate an intel architecture on my docker swarm node? Or to run the x86 services using rosetta?

The --platform flag mentioned in the docs does not seem to work for docker stack.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source