If that doesn’t work, you can use the DOCKER_DEFAULT_PLATFORM
environment variable. I currently have:
export DOCKER_DEFAULT_PLATFORM=linux/amd64
in my zsh profile. When using Docker I pretty much always want the architecture to match production systems.
Compared to previous generation MacBooks it’s a big improvement, even though the filesystem performance issues still exist. A high-end linux desktop is still going to beat it though.
For example, I can run bin/turbo_rspec
on core in about 2m50s (M1 Macbook pro, with Discourse, Redis & Postgres running natively). Team members on high-end linux desktops can do that in about 1 minute.