Using Docker, cannot run mailhog/mailhog:latest for Macbook Pro M1

1.2k Views Asked by At

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

1

There are 1 best solutions below

0
andreijy On

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:

    image: 'jcalonso/mailhog:latest'

And this would fix the issue.