- Start LaunchPad from the dock
- Search terminal > Click Terminal to launch it
- Run the following commands in the terminal window
# install command line tools
xcode-select --install
# if prompted, click install and agree to install command line tools
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# enter your password
# press Enter to continue
# install docker
brew install --cask docker
# enter your password when prompted - Once the Docker install completes, start LaunchPad from the dock > Select Docker
- Click Open to confirm opening the downloaded application
- Check the I accept checkbox > Click Accept
- To run a basic Docker container, run the following command in the terminal
sudo docker run hello-world
- Docker will download the hello-world container and execute it, displaying following output:
Hello from Docker!
This message shows that your installation appears to be working correctly.