Use lima instead of Docker Desktop

shell


# install
$ brew install lima
# https://github.com/lima-vm/lima/blob/bfac818e090fd18b69a9c47036bb4f6e4855f694/templates/docker.yaml
$ curl https://raw.githubusercontent.com/lima-vm/lima/bfac818e090fd18b69a9c47036bb4f6e4855f694/templates/docker.yaml > docker.yaml


# host operations
$ limactl start ./docker.yaml
$ limactl shell docker
# limactl stop docker

# guest
$ sudo apt install docker.io
$ sudo docker run mirror.gcr.io/hello-world

Second Time

$ limactl start docker
$ limactl shell docker

For Local Image

docker.yaml

# load from local file
images:
  - location: ~/Downloads/ubuntu-24.04-server-cloudimg-arm64.img

# writable for all dirs or you can wirte file to /tmp/lima
mounts:
- location: "~"
  writable: true
- location: "/tmp/lima"
  writable: true