brew install lima docker
limactl start default
lima sudo apt -y install docker.io
lima sudo usermod -aG docker $USER
limactl stop default
limactl start default
sudo rm -f /var/run/docker.sock -f $HOME/.lima/default/docker.sock
ssh -p 60022 -i $HOME/.lima/_config/user -o NoHostAuthenticationForLocalhost=yes -L $HOME/.lima/default/docker.sock:/var/run/docker.sock -N -f 127.0.0.1
sudo ln -s $HOME/.lima/default/docker.sock /var/run/docker.sock
docker ps
kill $(ps aux | grep 'docker.soc[k]' | awk '{print $2}')
limactl stop default
I recommend colima (https://github.com/abiosoft/colima). When you start it, automatically brings up lima services directly to be used by docker client. You can also make it auto-start at boot.