For some Mac devices, using the docker-compose might install AMD version so:
git clone https://github.com/Automattic/wordpress-xdebugcd wordpress-xdebugdocker build -t wp-debug:latest .- Use the
image: wp-debug:latestin the docker-compose.yaml file docker-compose up -d