IMPORTANT
I don't recommend using colima on macOS. Proceed either with Docker Desktop or Podman Desktop.
Note
See the note of ciarancourtney.
Install Docker, Docker Compose and colima using brew
brew install docker brew install docker-compose brew install docker-buildx brew install colima
Start the colima service
brew services start colima colima start
Add the following line to your
.zshrcexport DOCKER_HOST=unix:///$HOME/.colima/docker.sock
Make sure
docker composecommand is availablemkdir -p ~/.docker/cli-plugins/ ln -sfn /opt/homebrew/bin/docker-compose ~/.docker/cli-plugins/docker-compose
Delete default colima profile:
colima delete default
Delete ~/.colima:
rm -rf ~/.colimaReinstall colima:
brew reinstall colima
Start colima:
colima start
You should add
ln -sfn /opt/homebrew/bin/docker-buildx ~/.docker/cli-plugins/docker-buildxand step 3 should be marked as optional or added to appendix per https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running