Colima: Docker on Your Mac Without Docker Desktop (Linux, Windows, Mac)
Before you start
- 19 min read
Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#
Colima is a free, open-source command line tool that starts a small Linux virtual machine on your Mac (or Linux PC) and runs the Docker engine inside it, so the normal docker and docker compose commands work without Docker Desktop.

Logo: the official Colima project (github.com/abiosoft/colima, file colima.png at commit 49dfe87; logo contributed by Daniel Hodvogner, MIT repository licence, no separate artwork licence found)
There is no window and no account. You type colima start, wait a minute, and use Docker as usual. You choose how many CPUs, how much memory and how much disk the VM gets. That suits a Mac mini homelab or a laptop, and anyone who does not want the Docker Desktop licence terms. Windows is not supported.
| What | Value (official sources, read 3 December 2026) |
|---|---|
| Current version | Colima v0.10.3, released 4 June 2026 (previous: v0.10.2, 3 June 2026) |
| Depends on | Lima (Homebrew currently ships Lima 2.3.0) |
| Time needed | About 20 minutes (our estimate, not measured) |
| Defaults | 2 CPUs, 2 GiB memory, 100 GiB disk for container data |
| Licence | MIT (LICENSE at the repository) |
| Official docs | colima.run/docs |
At a glance:
- What it is: a command line wrapper around Lima virtual machines ("Containers on Lima").
- Who it is for: Mac users (Intel and Apple Silicon, macOS 13 or newer). Linux works too, always through a VM.
- Windows: not supported. Use Docker Desktop (WSL 2) or our Podman guide.
- You install yourself: the
dockerclient, Compose and Buildx. - Extras: k3s Kubernetes, containerd, separate profiles, Rosetta for Intel images on Apple Silicon.
Colima and its neighbours (official pages only; we did not run the others):
| Tool | Main difference | Cost and platforms |
|---|---|---|
| Colima | Command line only, you assemble the client tools | MIT, macOS and Linux |
| Docker Desktop | Window, bundled tools | Free for personal use, education, open source and small businesses (under 250 employees and 10 million USD revenue); paid for larger firms. Mac, Windows, Linux |
| OrbStack | Mac app with a window | Closed source, free for personal use, 8 USD per user per month for business. macOS 14+ |
| Podman Desktop, Rancher Desktop | Open-source apps with a window | Apache-2.0, Mac, Windows, Linux |
Apple container | One lightweight VM per container, not a Docker engine | Apache-2.0, Apple silicon, macOS 26+ |
How it fits together#
You run colima start once. It creates a Linux VM with the Docker engine inside. Colima then adds a Docker context named colima, so your Mac's docker command talks to that engine, and ports you publish show up on your Mac.
Drawn for this guide from the official docs.
Three facts explain most surprises:
- Images, containers and named volumes live inside the VM, not on your Mac as normal files.
- A host folder works in
-vmounts only if it is shared into the VM. Your home folder is by default. - A Docker context is an address book entry. Switching it moves no data between Colima and Docker Desktop.
Before you start#
Note: every domain, password and key on this page is a dummy example (like
app.example.comor<your-user>). Replace it with your own and keep real secrets out of Git.
| System | What to have |
|---|---|
| Mac | macOS 13 (Ventura) or newer, Intel or Apple Silicon, Homebrew (the FAQ says Colima is tested on the latest macOS) |
| Linux | Virtualization (KVM) and QEMU; Colima always runs a VM there. Homebrew or a manual binary |
| Windows | Not supported. Use Docker Desktop or Podman |
On a Mac check Homebrew, on Linux check KVM: brew --version, ls -l /dev/kvm.
Checklist:
- [ ]
brew --versionprints a version (Mac), or/dev/kvmexists (Linux) - [ ] Anything valuable in Docker Desktop is backed up: Colima starts with an empty Docker
Tested by DIY Lab Hub: not yet. Commands come from the official docs, the source code and the issue tracker at v0.10.3, read on 3 December 2026. We did not run them on a real machine.
Tip: Colima can live next to Docker Desktop (it uses Docker contexts). Keep Docker Desktop until the apps you need run under Colima.
Step 1: Install Colima and the Docker tools#
Colima brings the VM. The docker command, Compose and Buildx are separate packages, and the install page shows how to link the last two as Docker CLI plugins.
Linux#
The official page lists Homebrew, Nix and a manual binary. With Homebrew on Linux:
brew install colima docker docker-compose docker-buildx sudo usermod -aG kvm "$USER"
The second line lets your user open /dev/kvm; log out and in (or reboot) afterwards. Colima needs QEMU on Linux, and your distribution may need its own package (the docs' Arch page lists qemu-full). We tested no distribution. Then link the plugins, as on Mac:
mkdir -p "$HOME/.docker/cli-plugins" ln -sfn "$(brew --prefix)/opt/docker-compose/bin/docker-compose" "$HOME/.docker/cli-plugins/docker-compose" ln -sfn "$(brew --prefix)/opt/docker-buildx/bin/docker-buildx" "$HOME/.docker/cli-plugins/docker-buildx"
Windows (PowerShell)#
Colima is not for Windows. Its README says "macOS (and Linux)" and the install page has no Windows section. A Linux build inside WSL 2 would be a VM inside a VM, which the docs do not cover. Use Docker Desktop (WSL 2 backend) or our Podman guide. The Compose file in Step 4 works on any Docker.
Mac (Terminal)#
brew install colima docker docker-compose docker-buildx mkdir -p "$HOME/.docker/cli-plugins" ln -sfn "$(brew --prefix)/opt/docker-compose/bin/docker-compose" "$HOME/.docker/cli-plugins/docker-compose" ln -sfn "$(brew --prefix)/opt/docker-buildx/bin/docker-buildx" "$HOME/.docker/cli-plugins/docker-buildx"
brew --prefix avoids hard-coding /opt/homebrew (Apple Silicon) or /usr/local (Intel). Homebrew's notes suggest cliPluginsExtraDirs in ~/.docker/config.json instead; merge it into your existing JSON and write the real path. MacPorts (sudo port install colima) and Nix (nix-env -iA nixpkgs.colima) are in the README too.
Check it worked.
colima version docker --version docker compose version docker buildx version
Each prints a version (we have no real output to show).
Tip: Stop the VM before
brew upgrade: it can move Colima and Lima to new versions under a running VM (Updates and backups).
Step 2: Start the VM with the sizes you choose#
The defaults are small (2 CPUs, 2 GiB memory, 100 GiB disk), and most real apps want more memory. The main options in the v0.10.3 source:
| Option | What it does |
|---|---|
--cpus 4 | CPUs (the old --cpu still works but is hidden) |
--memory 8 | Memory in GiB |
--disk 100 | Container-data disk in GiB. It can grow later, never shrink |
--vm-type vz or qemu | Apple's Virtualization framework or QEMU. The code picks vz by default on macOS 13+; Linux always uses QEMU |
--mount-type virtiofs | Fastest folder sharing. Needs vz |
--runtime docker | The default. Others: containerd, incus |
--vz-rosetta | Apple Silicon, needs vz: Intel (amd64) images through Rosetta (Step 5) |
VZ or QEMU? On macOS 13 or newer use VZ with VirtioFS; the config file calls VirtioFS "the fastest of the options". On Linux, QEMU is the only choice. For QEMU the config recommends 9p as the most stable folder sharing; sshfs is faster but "the least reliable ... when there are lots of concurrent reads or writes". Asking for virtiofs with QEMU makes Colima warn and fall back to sshfs.
VM type, architecture, runtime and mount type are fixed when the VM is created. To change them, start a new profile (Step 5).
Linux#
colima start --cpus 4 --memory 8 --disk 100
This starts a QEMU VM with the Docker runtime. The network address and Rosetta options do not apply on Linux.
Windows (PowerShell)#
Not applicable. Colima does not run on Windows.
Mac (Terminal)#
colima start --runtime docker --vm-type vz --mount-type virtiofs --cpus 4 --memory 8 --disk 100
The numbers are examples for a Mac with 16 GB of RAM or more: use what your machine can spare. The first start downloads a VM image and takes longer. Colima saves these flags in its config file (Step 5).
Check it worked.
colima status colima list
We have no real output. The docs show colima list with the columns PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME; an issue report shows colima status lines such as colima is running using QEMU and a socket: line.
Step 3: Check the Docker context and run a first container#
Colima makes itself the active Docker context when it starts. The default profile's context is called colima; a profile named dev gets colima-dev.
Linux#
docker context ls docker run --rm hello-world:linux docker ps
Windows (PowerShell)#
Not applicable. With Docker Desktop, the same three commands work in PowerShell.
Mac (Terminal)#
Same commands as Linux.
Check it worked. docker context ls shows colima marked with *, and hello-world prints its greeting.
A tool that ignores Docker contexts fails with Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. The official FAQ offers three fixes: set the socket path in the tool, set DOCKER_HOST, or link the socket to /var/run/docker.sock (which may break other Docker servers). Find the real path first, because on Linux Colima's files may sit under ~/.config/colima:
colima status export DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"
The second line is the FAQ's example for the default profile.
Tip:
DOCKER_CONTEXTandDOCKER_HOSToverride the context you set withdocker context use(Docker's docs). Ifdocker psshows the wrong engine, look atenvfor them before you reinstall anything.
Step 4: Run an app with a folder from your home directory#
Colima shares your home folder with the VM, so the folder layout we use in all guides works: ~/docker_volumes/<app>/{data,config,logs,backups}. We use a pinned nginx as a stand-in web app (no real data).
Linux#
mkdir -p ~/docker_volumes/colima-demo/{data,config,logs,backups}
cd ~/docker_volumes/colima-demo
echo "hello from Colima" > data/index.html
cat > compose.yaml << 'EOF'
services:
web:
image: nginx:1.30.8-alpine
container_name: colima-demo
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
volumes:
- ./data:/usr/share/nginx/html:ro
EOF
docker compose up -d
docker compose ps
curl http://127.0.0.1:8080
Windows (PowerShell)#
Colima is not available here. With Docker Desktop the same file works:
$base = "$HOME\docker_volumes\colima-demo"
foreach ($d in "data","config","logs","backups") { New-Item -ItemType Directory -Force "$base\$d" | Out-Null }
Set-Location $base
Set-Content -Encoding ascii data\index.html "hello from Colima"
@'
services:
web:
image: nginx:1.30.8-alpine
container_name: colima-demo
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
volumes:
- ./data:/usr/share/nginx/html:ro
'@ | Set-Content -Encoding ascii compose.yaml
docker compose up -d
curl.exe http://127.0.0.1:8080
Mac (Terminal)#
Same commands as Linux.
127.0.0.1:8080:80 keeps the port on your own computer. The tag 1.30.8-alpine exists for amd64 and arm64 (Docker Hub, 3 December 2026). Colima forwards published ports by itself, so --network-address is not needed.
Check it worked. curl prints hello from Colima. Stop it again with docker compose down.
Tip: Put write-heavy data (databases) in a named Docker volume rather than a host folder: a host folder crosses the Mac-to-VM boundary on every write. That is our reasoning, not a measured benchmark.
A folder outside your home, such as a drive under /Volumes, gives an empty mount and no error (official FAQ). Add it to mounts in ~/.colima/default/colima.yaml and run colima restart:
mounts:
- location: /Volumes/<your-drive>/projects
writable: true
Step 5: Change the size, run Intel images or keep a second profile#
Change CPU and memory by stopping first (official README):
Linux#
colima stop colima start --cpus 6 --memory 12
To make the disk bigger, raise disk in the config and start again:
colima start --edit
Raise disk: 100 to a larger number. It can grow after creation but never shrink.
Windows (PowerShell)#
Not applicable. Docker Desktop sets these in its own settings window.
Mac (Terminal)#
Same commands as Linux. For Intel images on Apple Silicon:
colima start --vm-type vz --vz-rosetta docker run --rm --platform linux/amd64 alpine:3.23 uname -m
--vz-rosetta needs Apple Silicon and macOS 13+ (README), and a VM that already uses vz (otherwise add a profile name to create a new one). It runs Intel programs inside the arm64 VM. The command should print x86_64. A whole Intel VM (--arch x86_64) runs under QEMU and is slower.
Profiles are separate VMs with their own containers, images and settings:
colima start dev --cpus 2 --memory 4 colima list docker context use colima-dev colima stop dev
Each profile has its own ~/.colima/<profile>/colima.yaml. The template (colima template) only sets defaults for new VMs. COLIMA_HOME moves the folder and COLIMA_PROFILE picks the profile. A small config (the real file has many more commented lines):
cpu: 4 memory: 8 disk: 100 arch: host runtime: docker vmType: vz mountType: virtiofs rosetta: false autoActivate: true network: address: false
The key is still cpu, although the flag is --cpus.
Check it worked. colima list shows the new CPU, memory and disk.
Tip: After an upgrade that breaks something, test with a fresh profile such as
colima start debug(official FAQ). If that works, the old profile is the problem, not your Mac.
Step 6: Start Colima at login#
Linux#
Homebrew's service entry runs colima start -f for the default profile. With Homebrew on Linux the commands are the same as on Mac (we did not test them there).
Windows (PowerShell)#
Not applicable.
Mac (Terminal)#
brew services start colima brew services list
Turn it off with brew services stop colima. The FAQ names this the easiest autostart. An open report says the service can start while the VM does not come up after a reboot (issue 1265), so check colima list and the log at $(brew --prefix)/var/log/colima.log.
Check it worked. After a restart, colima list shows Running. We did not test whether restart: unless-stopped containers come back after a reboot.
Optional: add a small Kubernetes with k3s#
Colima can start k3s next to Docker. Install kubectl and start with the flag:
brew install kubectl colima start k8sdev --runtime docker --kubernetes kubectl get nodes
Images you build or pull with Docker are visible to this Kubernetes (README). Colima disables k3s's bundled Traefik by default. Stop or reset the cluster with colima kubernetes stop and colima kubernetes reset. Two limits from the release notes: v0.10.3 is a hotfix for a k3s restart failure caused by rsync, and the persistent container-data disk (v0.9.0) does not yet support Kubernetes. Treat this cluster as disposable.
Put it behind HTTPS with Traefik? Only for the apps you run in it#
Colima has no web page, so nothing of it needs HTTPS. A web app inside a container works as on any Docker host. This is for a machine with a domain; at home you can skip it. We did not test ports 80 and 443 on a Mac; a Linux server is the simpler place for a public site.
With Traefik#
Give the app these labels on the external proxy network (create it with docker network create proxy). app.example.com is a dummy domain, and le must be the name of your resolver in Traefik. See our Traefik guide:
networks: [proxy]
labels:
- traefik.enable=true
- traefik.http.routers.demo.rule=Host(`app.example.com`)
- traefik.http.routers.demo.entrypoints=https
- traefik.http.routers.demo.tls=true
- traefik.http.routers.demo.tls.certresolver=le
- traefik.http.services.demo.loadbalancer.server.port=80
Without Traefik: Caddy#
Run Caddy on the Mac with brew install caddy (or Linux packages) and put this in a Caddyfile. Caddy gets a Let's Encrypt certificate for a public domain by itself:
app.example.com {
reverse_proxy localhost:8080
}
At home with no public domain, add tls internal inside the block for Caddy's own local certificate and trust Caddy's root on your devices. Our Caddy guide shows how. Check with curl -I https://app.example.com.
Security and testing#
| Control | How |
|---|---|
| Docker socket | It sits under your own .colima folder. Whoever can use it controls Docker in the VM, and your home folder is writable from there. See our socket proxy guide |
| Published ports | 127.0.0.1:8080:80, not 8080:80, for anything only you use |
| Shared folders | Your home folder is writable in the VM by default. Narrow it with mounts: (writable: false = read-only) |
| Network address | --network-address gives the VM an address your Mac can reach. Bridged mode (--network-mode bridged, v0.9.0) puts it on your local network; the release notes say use it only if required |
| Secrets | .env files with chmod 600, never in Git |
| Images | Scan with Trivy, inspect with dive |
Quick tests: colima status, docker context ls, docker version, docker run --rm hello-world:linux.
Common mistakes#
| Mistake | Why it happens | Do this instead |
|---|---|---|
A tool says Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (issue 365) | The tool ignores Docker contexts and looks at the default socket | Set its socket path, DOCKER_HOST, or the FAQ symlink. Run colima status first |
docker compose up -d fails with unknown shorthand flag: 'd' in -d (issue 447) | The Compose plugin is not installed or linked (the maintainer: the Docker client and Compose are not part of Colima) | brew install docker-compose, then the ln -sfn line from Step 1 |
Builds fail with error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH (issue 52) | ~/.docker/config.json still says "credsStore": "desktop" after you removed Docker Desktop | Install a helper (brew install docker-credential-helper) and set a matching credsStore. Do not delete the whole file: it can hold other logins |
Restart fails with Resize instance colima's disk from 200GiB to 100GiB and diffDisk: Shrinking is currently unavailable (issue 1364) | The user edited ~/.colima/_lima/colima.yaml, which Colima regenerates at every start | Edit ~/.colima/default/colima.yaml or use colima start --edit. Never make disk smaller |
Could not access KVM kernel module: Permission denied on Linux (issue 1462) | Your user may not use /dev/kvm, or you did not log in again after the group change | sudo usermod -aG kvm "$USER", then log out and in (the reporter needed a reboot) |
vz driver is running but host agent is not (issue 985) | The VM state broke, often after a Mac restart or upgrade | colima stop --force, then colima start (the FAQ's "Broken" state fix) |
| A bind mount is empty but the container starts | The folder is outside your home and not shared into the VM | Add it under mounts:, then colima restart (FAQ) |
| AI assistants: "You cannot grow the disk, delete the VM and start again" | An old answer. Growing has worked since v0.5.3 | Raise disk in the config and restart. Shrinking is the thing that does not work |
AI assistants: export DOCKER_HOST=unix://$HOME/.colima/docker.sock | That is the path before v0.4.0. The FAQ now says $HOME/.colima/default/docker.sock | Read the socket: line from colima status |
AI assistants: a Docker Desktop setting or a colima flag that does not exist (for example --docker or --memory 8GB) | The model mixes tools. The real flags are --cpus, --memory (a number of GiB) and --disk | Run colima start --help and copy only flags from that list |
Tip: Run
docker context lsbefore you debug anything else. A star ondefaultor on a Docker Desktop context means your commands never reach Colima.
Tip: Since v0.9.0,
colima deletekeeps container data on new VMs andcolima delete --dataremoves it. The release notes call the kept data "a disaster recovery mechanism" with no guarantees, so back up first.
Troubleshooting#
| Problem | Solution |
|---|---|
Start fails with error starting vm: error at 'starting': exit status 1 | That is only a wrapper message. Run colima start --verbose and read the real line above it |
It hangs at Waiting for the essential requirement 1 of 4: "ssh" (issue 1347, closed) | Update Colima, run colima stop --force, then start again. Reporters also used colima delete (check backups first) |
| Containers cannot reach the internet | The FAQ says it is usually DNS: colima start --dns 8.8.8.8 --dns 1.1.1.1. Those are public resolvers, so use your own if you prefer |
| You need the VM's IP | Start with --network-address (Mac only). It needs admin rights and makes the start slower |
colima list shows Broken, or an upgrade misbehaves | colima stop --force and start again. If a fresh profile (colima start debug) works, reset the old one: colima delete, colima start |
Exact error texts#
The texts for issues 365, 1364, 1462 and 985 are in Common mistakes. Two more:
Waiting for the essential requirement 1 of 4: "ssh"(issue 1347): see the table.runc run failed ... mounting "cgroup" ... openrc: invalid argument: only on Colima v0.5.6 or older, fixed in v0.6.0 (official FAQ).
Known bugs (December 2026)#
Issue 365 (an easier default socket) and issue 1265 (brew services not always bringing the VM up) are open. The tracker has many open issues, so read it before you upgrade a machine you depend on. We found nothing that stops a normal v0.10.3 install, but we did not run it. Diagnostics: colima version, colima list, colima status, docker context ls, colima start --verbose.
Updates and backups#
Update Colima. Stop the VM, upgrade, start again:
colima stop brew update brew upgrade colima lima docker docker-compose docker-buildx colima start colima update
colima update (since v0.7.6) updates Docker inside the VM without a new Colima release. A new VM image is only used after colima delete and colima start; the FAQ advises testing in a separate profile first. Our Diun guide tells you when your images have updates, and lazydocker or dry give a terminal view.
What to back up. The folders under ~/docker_volumes and ~/.colima/default/colima.yaml. Named volumes live on the VM disk: export them with docker run and tar (see our docker-volume-backup guide).
Linux and Mac#
Save as ~/docker_volumes/colima-demo/backup.sh:
#!/usr/bin/env bash set -euo pipefail base="$HOME/docker_volumes/colima-demo" out="$base/backups/colima-demo-$(date +%F).tar.gz" tar -czf "$out" -C "$base" compose.yaml data config tar -czf "$base/backups/colima-config-$(date +%F).tar.gz" -C "$HOME/.colima/default" colima.yaml chmod 600 "$base"/backups/*.tar.gz
Run chmod 700 on it and add this line with crontab -e (use your real home path; on a Mac you may need to allow cron under Full Disk Access, or use launchd):
0 3 * * * /home/<your-user>/docker_volumes/colima-demo/backup.sh
Windows (PowerShell)#
Not applicable for Colima itself. With Docker Desktop, use Task Scheduler with tar.exe the same way.
Restore test#
mkdir -p /tmp/colima-restore-test tar -xzf ~/docker_volumes/colima-demo/backups/colima-demo-<date>.tar.gz -C /tmp/colima-restore-test ls -l /tmp/colima-restore-test/data
You should see index.html. We did not run this.
Performance and resources#
The docs give no minimum figures and we measured none. The default VM has 2 CPUs and 2 GiB of memory; builds and databases often need more, so raise --memory first. Watch it with docker stats and colima list.
From the project: VZ with VirtioFS is the fastest folder sharing, QEMU with 9p the most stable. Colima frees unused disk space on start (v0.5.0+); colima ssh -- sudo fstrim -a does it by hand. Prefer arm64 images on Apple Silicon; Intel images cost extra. The default port forwarder ssh is TCP only; grpc adds UDP but is experimental (config comments).
FAQ#
Does Colima replace Docker Desktop completely? For the command line, yes. It has no window, no extensions and no built-in Docker Hub login. You install docker, Compose and Buildx yourself.
Does it work on Windows? No. Use Docker Desktop with WSL 2, or see our Podman guide.
Will my Docker Desktop images appear? No. Colima starts with its own empty storage, but it can run next to Docker Desktop. Switch with docker context use.
Which Colima runtime should I pick? Docker, unless you know you want containerd (then you use colima nerdctl, not the Docker API) or Incus.
How do I remove it? colima delete --data for each profile you want gone (this deletes its container data), then brew uninstall colima. Keep docker and the plugins if other tools use them, and do not delete ~/.docker wholesale.
Sources#
- Colima repository and README at v0.10.3; release v0.10.3 (June 2026); licence MIT.
- Docs at tag v0.10.3: FAQ, install options, default config
colima.yaml, start command source (read December 2026). - Website: Installation, Configuration, Runtimes, Profiles; Homebrew: colima, lima (December 2026).
- Docker: contexts, Docker Desktop licence (December 2026). Others: OrbStack FAQ, Apple container (release 1.7.1, November 2026).
- Image tags checked on Docker Hub in December 2026:
nginx:1.30.8-alpine,alpine:3.23,hello-world:linux. - Issues read: 52, 365, 447, 985, 1265, 1347, 1364, 1462.
Checked against the official docs on 2026-12-03. Nothing was run on a real machine by DIY Lab Hub; the commands come from the docs, the source code and the issues above.