Skip to content

Instantly share code, notes, and snippets.

View reypm's full-sized avatar

ReynierPM reypm

View GitHub Profile
@ciaranmcnulty
ciaranmcnulty / notes.md
Last active March 25, 2024 06:36
Notes on using Docker on ARM Macs (November 2021)

Docker for Mac

On M1 machines, Docker for Mac is running a lightweight linux ARM VM, then running containers within that, so containers are essentially running natively. Don't be fooled by the fact the UI or binary CLI tools (e.g. docker) might require Rosetta.

Within that VM is an emulation layer called QEmu. This can be used by docker to run Intel containers. This does not use Rosetta at all, and has a roughly 5-6X performance penalty. (If you just upgraded your CPU this may result in a similar performance to your old machine!)

Pulling and running with Docker

Many images in public registries are multi-architecture. For instance at the time of writing on Docker Hub the php:8.0-cli image has the following digests:

@reypm
reypm / README.md
Last active May 1, 2023 12:51
New Dev Environment Fast Setup

Fedora Server Configuration Snippets


  • Go to Parallels Desktop menu bar Devices > CD/DVD > Connect image
  • Navigate to /Applications/Parallels Desktop/Contents/Resources/Tools
  • Click on prl-tools-lin.iso (for x86_64) or the equivalent for ARM and click Open
  • Mount the Parallels Tools image to Linux virtual machine: