Skip to main content

Docker Installation Guide

This guide provides step-by-step instructions for installing Docker on various operating systems.

Windows

Docker Desktop for Windows

  1. Download Docker Desktop for Windows
    Visit the Docker Hub and download the installer.

  2. Run the Installer
    Double-click Docker Desktop Installer.exe to run the installer.

  3. Follow the Installation Wizard
    Follow the instructions in the installation wizard, accepting the license, authorizing the installer, and proceeding with the install.

  4. Restart Your Computer
    Restart your computer to complete the installation.

  5. Start Docker Desktop
    Docker Desktop does not start automatically after installation. To start Docker Desktop, search for Docker, and select Docker Desktop in the search results.

  6. Verify Installation
    Open a terminal window (Command Prompt or PowerShell, but not PowerShell ISE) and type docker --version to ensure Docker is installed correctly.

macOS

Docker Desktop for Mac

  1. Download Docker Desktop for Mac
    Visit the Docker Hub and download the Docker .dmg file.

  2. Install Docker Desktop
    Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applications folder.

  3. Launch Docker Desktop
    Open Docker from the Applications folder or Launchpad.

  4. Grant Permissions
    You might be prompted to authorize Docker with your system password after launching. This is required to install networking components and links to the Docker apps.

  5. Verify Installation
    Open a terminal and type docker --version to check that Docker has been installed.

Linux

Docker Engine on Ubuntu

  1. Update Your Package Index
    Run sudo apt-get update in your terminal.

  2. Install Packages to Allow apt to Use a Repository Over HTTPS
    Run the following command in your terminal:

    sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
  3. Add Docker's GPG Key
    Run the following command in your terminal:

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  4. Add Docker Repository
    Run the following command in your terminal:

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  5. Update Your Package Index Again
    Run sudo apt-get update in your terminal.

  6. Install Docker Engine
    Run the following command in your terminal:

    sudo apt-get install docker-ce
  7. Verify Installation
    Run the following command in your terminal:

    docker --version