Skip to content

Apple Silicon support

Derschatta edited this page Sep 2, 2023 · 6 revisions

Multiarch images (experimental)

Docker dev should work mostly out of the box on Macs with Apple Silicon (ARM).

There are some prebuilt images available with arm64 support which are preferred over the standard images as they'll be more performant.

Please note that these images are not automatically built. There's a chance they are not 100% up-to-date.

To make use of those create a file arm.yml in the custom folder of your docker dev directory with the following contents:

version: "3.7"
services:

  mysql:
    image: biarms/mysql:5.7.30

  apache:
    image: totara/docker-dev-apache:multiarch

  nginx:
    image: totara/docker-dev-nginx:multiarch

  php-7.3:
    image: totara/docker-dev-php73:multiarch

  php-7.3-cron:
    image: totara/docker-dev-php73-cron:multiarch

  php-7.3-debug:
    image: totara/docker-dev-php73-debug:multiarch

  php-7.4:
    image: totara/docker-dev-php74:multiarch

  php-7.4-cron:
    image: totara/docker-dev-php74-cron:multiarch

  php-7.4-debug:
    image: totara/docker-dev-php74-debug:multiarch
    
  php-8.0:
    image: totara/docker-dev-php80:multiarch

  php-8.0-cron:
    image: totara/docker-dev-php80-cron:multiarch

  php-8.0-debug:
    image: totara/docker-dev-php80-debug:multiarch
    
  php-8.1:
    image: totara/docker-dev-php81:multiarch

  php-8.1-cron:
    image: totara/docker-dev-php81-cron:multiarch

  php-8.1-debug:
    image: totara/docker-dev-php81-debug:multiarch
    
  selenium-hub:
    image: seleniarm/hub:4.5.3-20221025

  selenium-chrome:
    image: seleniarm/node-chrome:106.0

  selenium-chrome-debug:
    image: seleniarm/standalone-chromium:106.0

Then just tup your containers as usual.

Clone this wiki locally