How to run Docker on Apple Silicon Mac #
Install Rosetta #
% softwareupdate --install-rosetta --agree-to-license
Enable Rosetta #
- Open
Docker Desktop
Extensions ︙
>Settings
>Features in development
- Check
Use Rosetta for x86/amd64 emulation on Apple Silicon
docker run #
Add the following option to docker run
command.
--platform linux/x86_64
docker-compose.yml #
Add platform
under container name.
platform: linux/amd64