Installing Docker Desktop on Windows and macOS
Docker Desktop is a convenient way to run Docker containers on your Windows or macOS machine. It provides an easy-to-use interface for managing containers and orchestrating your development environment. Follow these steps to install Docker Desktop on your system.
Windows Installation
Prerequisites
Before installing Docker Desktop on Windows, ensure that your system meets the following requirements:
- Windows 10 Pro, Enterprise, or Education (64-bit)
- Virtualization must be enabled in the BIOS/UEFI settings.
- Hyper-V must be enabled (usually enabled by default in Windows 10 Pro).
Installation Steps
-
Go to the Docker Desktop for Windows download page.
-
Download the Docker Desktop for Windows installer.
-
Double-click the installer to run it. You may be prompted for administrator permissions.
-
Follow the installation wizard's instructions to install Docker Desktop.
-
During the installation, you will be asked if you want to use Windows containers or Linux containers. You can select either option or choose to use both.
-
Once the installation is complete, Docker Desktop will start automatically. You'll see the Docker whale icon in your system tray.
macOS Installation
Prerequisites
Before installing Docker Desktop on macOS, ensure that your system meets the following requirements:
- macOS 10.13 or newer with macOS Sierra, High Sierra, or Mojave, and at least 4GB of RAM.
Installation Steps
-
Go to the Docker Desktop for Mac download page.
-
Download the Docker Desktop for Mac installer.
-
Double-click the installer to open it.
-
Drag the Docker icon into your Applications folder to complete the installation.
-
Launch Docker Desktop from your Applications folder.
-
You may be prompted to provide your system password to allow Docker to make changes. Enter your password to proceed.
-
Docker Desktop will start, and you'll see the Docker whale icon in your macOS menu bar.
Verifying the Installation
To verify that Docker Desktop is installed and running correctly, open a terminal or command prompt and run the following command:
You should see the Docker version displayed, which confirms that Docker Desktop is installed and ready for use.
Run the Container hello-world Container
In your terminal or command prompt, type the following command and press Enter:
That's it! You've successfully installed Docker Desktop on your Windows or macOS machine. You can now start creating and managing containers with ease.