Skip to content

Docker Installation

Docker Installation - Mac

The easiest way to install Docker on a Mac system is to install the Docker Desktop software. To do so, visit the official Docker website's Get Started section and install the Docker Desktop.

After the installation, everything should be running smoothly.

Info

Note that you need to start and keep the Docker Desktop running while using Docker.

Docker Installation - Windows (WSL)

Luckily, Docker Desktop software also supports WSL 2 out of the box, so it is easy to set it up and start using it. The steps below describes what you need to do.

1/3: Stop WSL

First, stop your WSL application (Ubuntu) if you have it running in order not to cause any problems during the installation / setup phase.

2/3: Install Docker Desktop for Windows

Visit the official Docker website's Get Started section. Download and install Docker Desktop.

While installing Docker Desktop, be note to keep the checkbox that states something about using WSL 2 enabled.

EXTRA STEP: Only for Windows 11 Users

Docker does not work without administrator rights. Open your command prompt and then first determine your username with the command:

Text Only
net user

This should output users for multiple roles, including category DefaultAccount and under it should be your username. For example: toni.

Now run the command below to add your own user to the docker group (REPLACING TONI WITH YOUR OWN USERNAME):

Text Only
net localgroup "docker-users" "toni" /add

3/3: Verify WSL 2 Configuration

This should be enabled by default, but let's also verify that the WSL 2 support has been enabled for Docker Desktop.

To do so:

  1. Open Docker Desktop
  2. Click on the settings (cog) icon on the topright corner, or whenever that is to access the settings menu
  3. From the General settings, verify that the option Use the WSL 2 based engine is enabled.

And that's it! You now have Docker enabled on your Windows WSL.

Info

Note that you need to start and keep the Docker Desktop running while using Docker.