Installing Docker on Mac Using Homebrew

Docker is an essential open-source tool that empowers users to build, deploy, and manage applications within containers. This tutorial will navigate you through the process of installing Docker on a Mac via Homebrew.


  • A Mac operating on macOS Yosemite 10.10.3 or a more recent version.

  • A minimum of 4GB RAM.

  • Administrative rights on your Mac. (Your Password!)

  • Homebrew installation. If not installed, install Homebrew here.


Step 1: Open the Terminal

  1. Use the search field to find and open "Terminal".

 Click to Exapnd
  1. This opens the terminal.

 Click to Expand

Step 2: Install Docker Using Homebrew

In the terminal, input:

brew install --cask docker

Note: Upon the initial run of Docker, macOS may prompt for your password to facilitate the Docker installation. Kindly enter your password when requested.

 Click to Expand

Step 3: Run the Docker App/Daemon

Either launch the Docker application or input the following command in the terminal:

 open -a docker

Note: A cautionary message may appear: "Docker is an app downloaded from the internet. Are you sure you want to open it?" Proceed by selecting "Open".

The Docker application will initiate and display a startup page.

 Click to Exapnd

You can close the Docker application afterwards. The daemon will persistently operate in the background.

Step 4: Verify the Docker Installation

After Docker initializes, let's verify that Docker was installed correctly by typing the following command in the terminal.

docker run hello-world

If everything went smoothly, you should see a message on the terminal.


Great job! If the terminal displays the "Hello from Docker!" message, you have effectively installed Docker on your Mac through Homebrew. As a next step, set up RStudio.