Skip to content

Instantly share code, notes, and snippets.

@au79
Forked from making/README.md
Last active August 23, 2023 18:51
Show Gist options
  • Save au79/4a98705b20ccfed7fee24086d0b8175f to your computer and use it in GitHub Desktop.
Save au79/4a98705b20ccfed7fee24086d0b8175f to your computer and use it in GitHub Desktop.
Use colima instead of Docker Desktop on Mac

Install

brew install colima docker
colima start
colima stop

Start Docker

sudo rm -f /var/run/docker.sock -f $HOME/.lima/default/docker.sock 
colima start
ssh -p ${COLIMA_PORT} -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/colima/docker.sock /var/run/docker.sock
docker ps

Stop Docker

kill $(ps aux | grep 'docker.soc[k]' | awk '{print $2}')
limactl stop default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment