Installing docker (non-desktop):
```
brew install docker
brew install docker-machine
brew install --cask virtualbox # does not work on M1
```
Running docker:
```
brew services restart docker-machine
```
Alternatively, use podman:
```
brew install podman
```