Run Docker using Colima in MacBook
Docker Desktop can be quite resource hungry and full with bloatware, to have a minimal Docker setup, we can use Colima.
Installation
To install Colima, we can use brew:
brew install colima docker docker-composeConfiguring the VM
First we need to create a Virtual Machine (VM) which will run Docker, to initalize it using colima, run this command for M1 chips:
colima start --cpu 4 --memory 5 --disk 60 --vm-type vz --vz-rosettaOr Intel chips:
colima start --cpu 4 --memory 5 --disk 60Check status with:
colima statusChange Docker Context
List and switch Docker's context using:
docker context ls
docker context use colimaTo make it permanent, add colima context to ~/.zshrc:
Configure Docker Plugins
Docker Compose can work fine without this step, but I prefer using docker compose instead of docker-compose, in order to do that, run:
Check Compose version:
Manage Colima
Make it start automatically upon boot:
Reference(s):
Last updated