Skip to content

Instantly share code, notes, and snippets.

@oleksiivelychko
Created March 16, 2025 19:55
Show Gist options
  • Save oleksiivelychko/724d3fab557c46fa4e7dfbb6858d6c2e to your computer and use it in GitHub Desktop.
Save oleksiivelychko/724d3fab557c46fa4e7dfbb6858d6c2e to your computer and use it in GitHub Desktop.
To ultimately replace Docker Desktop with Colima on macOS

To ultimately replace Docker Desktop with Colima on macOS

  • completely delete Docker Desktop, then find leftovers in your system and remove them
find . -name '*docker*' 
brew install docker
brew install docker-compose
brew install docker-buildx
  • install Kubernetes CLI (only if you need a Kubernetes cluster locally)
brew install kubernetes-cli
brew install colima
  • start Colima and create a new virtual machine

NOTE: a new machine will contain 4 CPU, 4Gb RAM, 64GB disk size and use Apple Virtualization framework

colima start --cpu 4 --memory 4 --disk 64 --vm-type=vz --mount-type=virtiofs
  • in order to start it with Kubernetes
colima start --kuberntetes
  • to recognize docker-compose add to ~/.docker/config.json (from brew info docker-compose)
"cliPluginsExtraDirs": [
  "/opt/homebrew/lib/docker/cli-plugins"
]
  • define Docker host environment variable adding it to your .zshrc
export COLIMA_HOME="$HOME/.colima"
export DOCKER_HOST="unix://$COLIMA_HOME/default/docker.sock"
  • next time to start Colima
colima start
  • ...or without Kubernetes
colima start --kubernetes=false

Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment