1.Install colima
brew install colima
- Install Docker and helpers
brew install docker docker-compose docker-credential-desktop docker-credential-helper
- Running colima
colima start --cpu 4 --memory 8 --disk 15
- Adjusting file configs with context
Edit file ~/.docker/config.json adding json down
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "osxkeychain",
"experimental": "enabled",
"stackOrchestrator": "swarm",
"currentContext": "colima"
}
- Login in docker hub to pull images
docker login -u $USER
- Running hello world
docker run hello-world
- For some services, is required of you using the colima with context docker, for resolve this, execute the command to create link between colima and docker.sock
sudo ln -f -s ~/.colima/default/docker.sock /var/run/docker.sock