colima
colima copied to clipboard
Attempts to mount volumes fail with permissions errors in Colima, but not Docker Desktop
Description
I switched from Docker Desktop to Colima, but found I could no longer run my development environment. Specifically, I couldn't run Compose to build Supabase, because the process produced hundreds of errors like this:
supabase-db | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
Version
colima version 0.6.9 git commit: c3a31ed05f5fab8b2cdbae835198e8fb1717fd0f
Operating System
- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [X] Apple Silicon >= 14 (Sonoma)
- [ ] Linux
Output of colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/me/.colima/default/docker.sock
Reproduction Steps
Install with Homebrew
brew install docker
brew install docker-credential-helper
brew install docker-compose
brew install colima
Go into ~/.docker/config.json and change the value for credsStore from desktop to osxkeychain
Also add
"cliPluginsExtraDirs": [
"/opt/homebrew/lib/docker/cli-plugins"
]
Download Supabase
Get the code
git clone --depth 1 https://github.com/supabase/supabase
Go to the docker folder
cd supabase/docker
Copy the fake env vars cp .env.example .env
Make sure Colima is running
colima start
Pull the latest images
docker compose pull
Start the services (in detached mode)
docker compose up -d
This will fail. Now stop Colima:
colima stop
Launch Docker Desktop and retry:
docker compose up -d
Expected behaviour
The container(s) is built and runs, as it does when Docker Desktop is running.
Additional context
Interestingly, it still works with Docker Desktop running even though I left the following in ~/.docker/config.json
"credsStore": "osxkeychain",
"currentContext": "colima",