Live demo of agent247 on Digio's docs — click the orange button at the bottom right to start.

Installing Docker on MacOS

This guide provides step-by-step instructions to install Docker on macOS.

Prerequisites

  • macOS 10.14 or later
  • At least 4GB of RAM
  • Admin privileges
  • Internet connection

Install Docker on macOS

  • Step 1: Download Docker Desktop Download the latest version of Docker Desktop from the official Docker website: Docker Desktop for macOS
  • Step 2: Install Docker Desktop Open the downloaded .dmg file. Drag the Docker icon to the Applications folder. Open Docker from the Applications folder. Grant necessary permissions if prompted.
  • Step 3: Verify Installation Once Docker is running, open a terminal and run:
    docker --version
    
    You should see the installed Docker version displayed.
  • Step 4: Run a Test Container To verify that Docker is functioning correctly, run:
    docker run hello-world
    

This will download and run a test container.

Post-Installation Steps

  • Configure Docker to Start at Login
  • Open Docker Desktop settings.
  • Enable "Start Docker Desktop when you log in."
  • Run Docker Without Sudo (Optional)
  • Docker on macOS runs inside a virtualized environment, so sudo is not required to manage containers.

Uninstall Docker on macOS

  • Step 1: Quit Docker Desktop
    • Ensure Docker is not running:
      cmd + space, type 'Docker', and select 'Quit Docker'
      
  • Step 2: Remove Docker Files
    • Run the following command in the terminal:
      rm -rf ~/Library/Containers/com.docker.docker
      rm -rf ~/.docker
      
  • Step 3: Delete Docker Desktop
    • Move Docker Desktop from Applications to Trash.

Additional Resources

You have successfully installed Docker on your macOS system!

Was this page helpful?