Installing Docker on macOS

We are going to install Docker using Homebrew. The guide to install Homebrew is here.

In the terminal run the following command:

brew install --cask docker

it will take some to download and install Docker client and server packages.

Once installed run Docker.app in your Applications folder. Go through configuration process.

Once done, the docker command is ready to use in the terminal:

docker version