I tried to run mailhog in Docker using the mailhog/mailhog:latest on Macbook Pro M1.
This is my docker file as swarm.yml:
version: '3'
services:
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '8025:8025'
deploy:
mode: global
I use docker swarm and run the following commands:
docker swarm init
docker stack deploy -c swarm.yml myapp
But when running docker service ls it said the REPLICAS is 0/1
Anyone has any ideas on how to fix this? Thank you
I have been able to run mailhog with different docker image and thank you Mihai for the pointer!
Using the following post as reference: Apple Silicon Arm builds #359
The final swarm.yml was changed to:
And this would fix the issue.