Skip to content

Using Docker on M1 Mac

monocle edited this page Jan 13, 2023 · 1 revision

When building a Docker image, make sure to specify the platform. This can be done by either:

  1. setting an environment variable $ export DOCKER_DEFAULT_PLATFORM=linux/amd64/v8 which can be added to the ~/.zshrc file.

  2. adding to the docker-compose.yml platform: linux/amd64/v8

  3. building with --platform

Clone this wiki locally