Skip to content

Instantly share code, notes, and snippets.

@lclpedro
Last active September 1, 2025 06:36
Show Gist options
  • Select an option

  • Save lclpedro/f04eeb11cef60d4bbf65de482e539af2 to your computer and use it in GitHub Desktop.

Select an option

Save lclpedro/f04eeb11cef60d4bbf65de482e539af2 to your computer and use it in GitHub Desktop.
Using colima with cli docker

Install colima with docker

1.Install colima

brew install colima
  1. Install Docker and helpers
brew install docker docker-compose docker-credential-desktop docker-credential-helper
  1. Running colima
colima start --cpu 4 --memory 8 --disk 15
  1. 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"
}
  1. Login in docker hub to pull images
docker login -u $USER
  1. Running hello world
docker run hello-world
  1. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment