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 ❤️
Stop Docker.
Delete Docker.app.
Prerequisite : have brew installed on your mac https://brew.sh/
$ brew doctor
$ brew update
$ brew install docker
$ brew install docker-compose
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
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:
Tip #1
Try this when
colima start
fails (assuming it worked in the past)