Command line operation of docker for macOS

On macOS, if you want to use Docker, you need to install a very large docker.app which has many features that are useless to me.

Is it possible to manage Docker containers directly via the command line like on Linux? By installing docker, docker-compose, and colima through brew, then starting colima.

brew install docker docker-compose colima
colima start

I am familiar with docker and docker-compose, but not so much with colima, which seems to be a lightweight Docker kernel?

Colima - container runtimes on macOS (and Linux) with minimal setup.

So what exactly is the docker installed via brew?

what’s more

If colima gets stuck at

[hostagent] Waiting for the essential requirement 1 of 4: "ssh"

you can refer to this issue for a solution.