Colima: A Free Docker Desktop Alternative for Mac
Colima replaces Docker Desktop on macOS: free, open source and lighter. Install it, tune it for Apple Silicon, enable Kubernetes and migrate in minutes.
If you develop on macOS, you have almost certainly used Docker Desktop. It is popular, but it has grown heavy on resources, and its license is no longer free for companies with more than 250 employees or more than $10M in annual revenue.
That's where Colima (Containers on Linux Machines) comes in: an open source tool that runs Docker on a Mac without Docker Desktop, using the same docker commands you already know.
In short:
- Colima is free and open source (MIT license), including for companies.
- It installs with Homebrew and runs from the command line, with no GUI.
- Your
docker,docker-composeandkubectlcommands work unchanged. - It can start a local Kubernetes cluster (k3s) with a single flag.
Why choose Colima over Docker Desktop?
Colima is a lightweight command-line tool that drives a Linux virtual machine (through Lima) to run containers with Docker or containerd.
Its main advantages over Docker Desktop:
- 100% free and open source: no commercial license restrictions, unlike Docker Desktop, which requires a paid subscription above 250 employees or $10M in revenue.
- Lighter: no GUI or extra background services. You allocate exactly the CPU and memory you need, and nothing runs while Colima is stopped.
- Fast volumes: Colima uses macOS native virtualization (
vz) and virtiofs file sharing by default, giving volume performance on par with Docker Desktop. - Simple built-in Kubernetes: a k3s cluster is one flag away at startup.
- Transparency and control: you choose CPU, memory, disk size and the container runtime (
dockerorcontainerd).
How does Colima work?
Colima relies on Lima (Linux Machines) to start a minimal Linux virtual machine on your Mac. The Docker daemon runs inside that VM, and the macOS docker CLI talks to it through a Unix socket.
Install and configure Colima on macOS
1. Prerequisites
Colima does not ship the Docker CLI: install it separately (the CLI only, without Docker Desktop). With Homebrew:
brew install docker docker-compose2. Install Colima
brew install colima3. Start Colima
With the default settings (2 CPUs, 2 GB of RAM, 100 GB of disk):
colima startRecommended settings on Apple Silicon
On recent Colima versions, native virtualization (--vm-type=vz) and virtiofs file sharing are already the defaults. For heavier projects, mostly raise the resources:
colima start --cpus 4 --memory 8Need to run x86 (amd64) images on an Apple Silicon Mac? Enable Rosetta for much faster emulation:
colima start --vz-rosettaTo keep these settings, edit the configuration before starting with colima start --edit.
Using Colima day to day
Once Colima is running, the docker command works directly, with no change to your habits.
Check the status
colima statusUse Docker as usual
docker run -d -p 8080:80 nginx
docker ps
docker-compose up -dEnable Kubernetes
For a local Kubernetes environment:
colima start --kubernetesColima automatically updates your ~/.kube/config so kubectl points at the cluster.
Change the allocated resources
You can adjust the configuration at any time:
colima stop
colima start --cpus 6 --memory 12Start Colima automatically
To launch Colima when you log in:
brew services start colimaStop or delete the instance
# Stop Colima to free up RAM
colima stop
# Delete the VM and start from scratch
colima deleteMigrate from Docker Desktop to Colima
- Quit Docker Desktop, then uninstall it if you no longer need it.
- Install the Docker CLI and Colima (see above), then run
colima start. - Check the Docker context: Colima creates a
colimacontext and switches to it automatically. Confirm withdocker context ls, and switch back to Docker Desktop if needed withdocker context use desktop-linux. - Get your images back: Docker Desktop images and volumes are not transferred. Run your
docker pullordocker-compose upagain to rebuild them.
Docker Desktop vs Colima
| Feature | Docker Desktop | Colima |
|---|---|---|
| License | Paid for larger companies | Free (MIT) |
| GUI | Yes | No (command line) |
| RAM / CPU usage | High | Low and configurable |
| Volumes on Mac | VirtioFS | virtiofs by default |
| Kubernetes | Included | Included (k3s) |
| Getting started | Click through the GUI | A few commands |
Frequently asked questions
Is Colima free for commercial use?
Yes. Colima is released under the MIT license: it is free for any use, including in companies, with no subscription.
Can I keep Docker Desktop and Colima side by side?
Yes. Each one exposes its own Docker context. Switch between them with docker context use colima or docker context use desktop-linux.
Testcontainers or another tool can't find Docker: what should I do?
Some tools look for the Docker socket at its default location. Point them to Colima's socket:
export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock"For Testcontainers, also set TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock.
Colima or OrbStack?
OrbStack is another Docker Desktop alternative, with a GUI, but its license is paid for commercial use. Colima remains the fully free and open source option.
Conclusion
If you don't mind working without a GUI, Colima is one of the best Docker Desktop alternatives on macOS today: lighter, completely free, and compatible with your existing Docker commands. Migrating takes just a few minutes.