This tutorial uses Homebrew to install colima and Docker.
It was tested on Apple MacBook Pro (13-inch, M1, 2020) 8G and macOS Monterey version 12.1 (21C52).
Make sure you have fully uninstall any versions of Docker. You can check using:
docker pswhich docker
First, install colima and docker by brew:
$ brew install colima dockerThen, initialize and start colima, to be the daemon of docker:
$ colima startFinally, test the docker (it must show an empty list of containers):
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESHere's some another tests:
$ docker run hello-world
$ docker run -it ubuntu bashTo get out of the ubuntu bash, type exit and enter.
If you got a error about docker-credentials-xxx, open the file ~/.docker/config.json and delete the credsStore. Maybe the file will looks like this:
{
"auths": {},
"currentContext": "colima"
}