Although this was always a problem until the mac M1 chips it didn’t matter much. Now it happens almost every week. I would prefer to have at least the same architecture between my local and prod environments.
alternatively:
docker buildx build --platform linux/arm64,linux/amd64 # or whatever you need to target...
Good for one off testing but not a full solution