The postgres image (postgis/postgis:12-3.1-alpine) is linux/amd64.
I see now that the official postgres images have other arch options compared to the postgis images, which are arm64 only. I wonder if that could make a difference...
And now I see that Docker Desktop actually shows a warning about potentially poor performance when using an amd64 image: "Image may have poor performance, or fail, if run via emulation."
This is good news, since I'd much rather use Docker to run postgres in dev.