Docker Installation Guide
This guide provides step-by-step instructions for installing Docker on various operating systems.
Windows
Docker Desktop for Windows
-
Download Docker Desktop for Windows
Visit the Docker Hub and download the installer. -
Run the Installer
Double-clickDocker Desktop Installer.exe
to run the installer. -
Follow the Installation Wizard
Follow the instructions in the installation wizard, accepting the license, authorizing the installer, and proceeding with the install. -
Restart Your Computer
Restart your computer to complete the installation. -
Start Docker Desktop
Docker Desktop does not start automatically after installation. To start Docker Desktop, search for Docker, and selectDocker Desktop
in the search results. -
Verify Installation
Open a terminal window (Command Prompt or PowerShell, but not PowerShell ISE) and typedocker --version
to ensure Docker is installed correctly.
macOS
Docker Desktop for Mac
-
Download Docker Desktop for Mac
Visit the Docker Hub and download the Docker .dmg file. -
Install Docker Desktop
Double-clickDocker.dmg
to open the installer, then drag the Docker icon to the Applications folder. -
Launch Docker Desktop
Open Docker from the Applications folder or Launchpad. -
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. -
Verify Installation
Open a terminal and typedocker --version
to check that Docker has been installed.
Linux
Docker Engine on Ubuntu
-
Update Your Package Index
Runsudo apt-get update
in your terminal. -
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
-
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 -
-
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"
-
Update Your Package Index Again
Runsudo apt-get update
in your terminal. -
Install Docker Engine
Run the following command in your terminal:sudo apt-get install docker-ce
-
Verify Installation
Run the following command in your terminal:docker --version