by y0ssar1an · 9mo ago · 0 comments
brew install colima docker docker-buildx docker-completion docker-compose
export DOCKER_HOST="$HOME/.colima/docker.sock" >> ~/.zshrc
source ~/.zshrc
colima start --cpus 8 --vz-rosetta --ssh-agent --mount $HOME:w
then add this line to your $HOME/.docker/config.json "cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"],
that will get you a fast virtiofs VM with the latest docker, including compose and buildx. it may seem scary to replace an officially blessed tool like Docker Desktop, but i have had zero issues with colima. it isn't "docker compatible". it's docker. just need to run `brew upgrade` and `colima update` every once in a while to keep it up to date.I just alias docker to finch and it just works.
brew install podman
Podman manages the linux vm for you automatically.I've come to enjoy podman more than docker on my linux hosts anway; the default runtime (crun) is lighter than docker (runc), podman-kube-play is great for managing multi-container pods and is compatible with kubernetes. It also integrates very neatly with systemd. Of course there is the whole daemon-less and rootless side of the things as well..
I switched to Colima instead and couldn't be happier.
”—mount $HOME:w”