# Installing Docker on MacOS

1. Start LaunchPad from the dock
2. Search terminal > Click Terminal to launch it
3. 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
4. Once the Docker install completes, start LaunchPad from the dock > Select Docker
5. Click Open to confirm opening the downloaded application
6. Check the I accept checkbox > Click Accept
7. To run a basic Docker container, run the following command in the terminal
   sudo docker run hello-world
8. 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.