Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radzhome/24ebec5258345cd3d43b9630e191bb3c to your computer and use it in GitHub Desktop.
Save radzhome/24ebec5258345cd3d43b9630e191bb3c to your computer and use it in GitHub Desktop.
HOW TO Replacing Docker Desktop with Colima

Run docker in macos without docker desktop

Disclaimer: this work is not completely mine. Most of the work here is comming from:
https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
https://gist.github.com/juancsr/5927e6660d6ba5d2a34c61802d26e50a
and suggestions from my colleagues ❤️

Prepare

Stop Docker.
Delete Docker.app.

Run brew doctor and update to make sure everything is working and up to date

Prerequisite : have brew installed on your mac https://brew.sh/

$ brew doctor
$ brew update

Install Docker CLI

$ brew install docker
$ brew install docker-compose

Install Colima

via Homebrew

$ brew install colima

see more options here : https://github.com/abiosoft/colima#getting-started

Configure mem and cpu

$ colima start --cpu 4 --memory 8

You should now be good to go : docker and docker-compose now work as usual

Troubleshooting

failed to solve: XXXXX/YYYYYYYYY: failed to do request: Head "XXXXX/YYYYYYYYY": dial tcp: lookup registry-1.docker.io on 192.168.107.1:53: read udp 192.168.5.15:56530->192.168.107.1:53: i/o timeout

You may need to log in to a registry to pull an image https://docs.docker.com/engine/reference/commandline/login/

$ docker login
Username: 
Password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment