- Install cfkit for Apple Hypervisor for VMs (not using Qemu)
brew tap cfergeau/crc
brew install vfkit
- Install Podman + Podman Desktop
brew install podman podman-desktop
2a. Optional: Go through https://podman-desktop.io/docs/migrating-from-docker (ensuring docker compatibility is enabled)
- Create Podman Machine using vfkit
export CONTAINERS_MACHINE_PROVIDER=applehv
podman machine init --now
- Update
containers.conf
so that Podman Desktop see's the Machine
$EDITOR ~/.config/containers/containers.conf
# Set machine.provider="applehv"
Should look something like:
...
[machine]
provider="applehv"
...
NOTE: Due to a bug in recent qemu, it segfaults. As per this issue use an older version of Fedora:
podman machine init --disk-size 60 --rootful --cpus=4 --memory=8192 --image https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/39.20240407.3.0/aarch64/fedora-coreos-39.20240407.3.0-applehv.aarch64.raw.gz
- Install lima (via brew) and lima extension in Podman Desktop
- Create lima vm:
limactl start --vm-type=vz --rosetta --name=podman template://podman
- Set Podman connection:
podman system connection add lima-podman "unix:///Users/yasser.saleemi/.lima/podman/sock/podman.sock"
podman system connection default lima-podman
- Install lima (via brew)
- Create lima vm:
limactl start --vm-type=vz --rosetta --name=docker template://docker
- Set DOCKER_HOST:
export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock')
- Follow step (2) here
That should be it