standard_init_linux.go:228: exec user process caused: exec format error

This error can occur when you try to run an amd64 image on the wrong architecture. For example I tried to use the image ‘catatnight/postfix‘ and it didn’t start on my M1 Max. The working fix was to switch from image entry in my docker-compose.yml to a build entry and rebuild the image based on the publicly available project.