Note: Do not try to install Docker Desktop via Homebrew cask — it will fail if previous binaries exist or /Applications/Docker.app is missing.
Step 4: Start Colima
bash
colima start
Colima creates a Linux VM and runs a Docker daemon inside.
After starting, you can use Docker CLI commands normally.
Check that the CLI can reach the daemon:
bash
colima status
docker version
docker run --rm hello-world
If docker version prints a Server section and hello-world runs, you're done. If it says it cannot connect to the Docker daemon, Colima isn't running. Run colima start and try again. When you want to stop everything (for example, to free RAM), use colima stop.
4. Handling Credential Helper Issues
In CLI-only mode, the macOS credential helper (docker-credential-osxkeychain) is not available. To fix:
Edit Docker config:
bash
nano ~/.docker/config.json
Remove or comment out:
json
"credsStore":"osxkeychain"
Save the file. Docker CLI will now pull/push images without the credential helper.
5. Running Docker Compose Projects
Assuming you have a Compose file (e.g., compose.dev.yml) in your project:
bash
docker-compose -f compose.dev.yml up -d
-f compose.dev.yml points to your Compose file
up -d runs containers in detached mode
Check running containers:
bash
docker-compose ps
Follow logs:
bash
docker-compose logs -f
Stop containers:
bash
docker-compose down
Tip: Alias for convenience
To unify commands with the modern CLI:
bash
alias docker-compose='docker compose'
Then you can run your usual docker-compose commands and they will invoke the CLI-compatible version automatically.
6. Cleaning Up Disk Space
Stopped containers, old images, volumes, and build cache can fill your disk. Recommended commands:
Remove stopped containers:
bash
docker container prune -f
Remove unused images:
bash
docker image prune -a -f
Remove volumes:
bash
docker volume prune -f
Remove build cache:
bash
docker builder prune -a -f
One-shot cleanup:
bash
docker system prune -a --volumes -f
7. Summary of Steps
Remove broken Docker Desktop remnants.
Install Colima via Homebrew.
Install Docker CLI, Compose, and Buildx.
Start Colima (colima start) to create a Linux VM with Docker daemon.
Fix docker-credential-osxkeychain issue by editing ~/.docker/config.json.
Use docker-compose -f compose.dev.yml up -d to run projects.
Clean up old containers, images, volumes, and build cache as needed.
8. Why This Setup Is Better
Works entirely in the terminal.
Lightweight and faster than Docker Desktop.
No GUI app conflicts.
Fully supports Docker CLI, Compose, Buildx, and Colima VM networking.
Easier to automate for scripts, CI/CD, and development workflows.
8. What to Read Next
Once docker works on your Mac, these are the natural next steps:
Run your project with Compose:Docker Compose env_file vs environment explains which variable source wins, which is the first thing that bites you after docker-compose up.