Skip to content

Instantly share code, notes, and snippets.

@phrawzty
Created June 27, 2024 15:04
Show Gist options
  • Save phrawzty/3dfd263c209823844f7fedeafb094744 to your computer and use it in GitHub Desktop.
Save phrawzty/3dfd263c209823844f7fedeafb094744 to your computer and use it in GitHub Desktop.
Multi-arch containers using Docker on Lima on Apple ARM (M3)
  1. Install Rosetta
    1. softwareupdate --install-rosetta
  2. Create a Lima instance using the Docker template, but edit the YAML
    1. limactl create --name=docker template://default
    2. Add the YAML snippet from from Fast Mode 2 (Rosetta)
  3. Create and use that context with Docker
    1. docker context create docker --docker "…docker.sock"
    2. docker context use docker
    3. docker run …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment