EML Docs

Get Docker

You need to install Docker Engine and Docker Compose on your VPS. The following steps will guide you through the installation process.

For production environments, it is recommended to use a Linux-based operating system (for example, Ubuntu or Debian). To install Docker on macOS or Windows, please see the instructions below.

The following is taken from the official Docker documentation, under Apache License 2.0.

Install Docker under Linux

Install Docker under macOS

System requirements

Before you install or update

Quit tools that might call Docker in the background (Visual Studio Code, terminals, agent apps).

Install and run Docker Desktop on Mac

Tip

See the FAQs on how to install and run Docker Desktop without needing administrator privileges.

Install interactively

  1. Download the installer from the release notes.

  2. Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applications folder. By default, Docker Desktop is installed at /Applications/Docker.app.

  3. Double-click Docker.app in the Applications folder to start Docker.

  4. The Docker menu displays the Docker Subscription Service Agreement.

    Here’s a summary of the key points:

    • Docker Desktop is free for small businesses (fewer than 250 employees AND less than $10 million in annual revenue), personal use, education, and non-commercial open source projects.
    • Otherwise, it requires a paid subscription for professional use.
    • Paid subscriptions are also required for government entities.
    • Docker Pro, Team, and Business subscriptions include commercial use of Docker Desktop.
  5. Select Accept to continue.

    Note that Docker Desktop won’t run if you do not agree to the terms. You can choose to accept the terms at a later date by opening Docker Desktop.

    For more information, see Docker Desktop Subscription Service Agreement. It is recommended that you also read the FAQs.

  6. From the installation window, select either:

    • Use recommended settings (Requires password). This lets Docker Desktop automatically set the necessary configuration settings.
    • Use advanced settings. You can then set the location of the Docker CLI tools either in the system or user directory, enable the default Docker socket, and enable privileged port mapping. See Settings, for more information and how to set the location of the Docker CLI tools.
  7. Select Finish. If you have applied any of the previous configurations that require a password in step 6, enter your password to confirm your choice.

Install Docker under Windows

System requirements

Tip

Should I use Hyper-V or WSL?

Docker Desktop’s functionality remains consistent on both WSL and Hyper-V, without a preference for either architecture. Hyper-V and WSL have their own advantages and disadvantages, depending on your specific setup and your planned use case.

Containers and images created with Docker Desktop are shared between all user accounts on machines where it is installed. This is because all Windows accounts use the same VM to build and run containers. Note that it is not possible to share containers and images between user accounts when using the Docker Desktop WSL 2 backend.

Running Docker Desktop inside a VMware ESXi or Azure VM is supported for Docker Business customers. It requires enabling nested virtualization on the hypervisor first. For more information, see Running Docker Desktop in a VM or VDI environment.

Administrator privileges and installation requirements

Installing Docker Desktop requires administrator privileges. However, once installed, it can be used without administrative access. Some actions, though, still need elevated permissions. See Understand permission requirements for Windows for more detail.

If your users do not have administrator rights and plan to perform operations that require elevated privileges, be sure to install Docker Desktop using the --always-run-service installer flag. This ensures those actions can still be executed without prompting for User Account Control (UAC) elevation. See Installer Flags for more detail.

WSL: Verification and setup

If you have chosen to use WSL, first verify that your installed version meets system requirements by running the following command in your terminal:

wsl --version

If version details do not appear, you are likely using the inbox version of WSL. This version does not support modern capabilities and must be updated.

You can update or install WSL using one of the following methods:

Option 1: Install or update WSL via the terminal

  1. Open PowerShell or Windows Command Prompt in administrator mode.
  2. Run either the install or update command. You may be prompted to restart your machine. For more information, refer to Install WSL.
wsl --install

wsl --update

Option 2: Install WSL via the MSI package

If Microsoft Store access is blocked due to security policies:

  1. Go to the official WSL GitHub Releases page.
  2. Download the .msi installer from the latest stable release (under the Assets drop-down).
  3. Run the downloaded installer and follow the setup instructions.

Install Docker Desktop on Windows

Tip

See the FAQs on how to install and run Docker Desktop without needing administrator privileges.

  1. Download the installer using the download button at the top of the page, or from the release notes.

  2. Double-click Docker Desktop Installer.exe to run the installer. By default, Docker Desktop is installed at C:\Program Files\Docker\Docker.

  3. When prompted, ensure the Use WSL 2 instead of Hyper-V option on the Configuration page is selected or not depending on your choice of backend.

    On systems that support only one backend, Docker Desktop automatically selects the available option.

  4. Follow the instructions on the installation wizard to authorize the installer and proceed with the installation.

  5. When the installation is successful, select Close to complete the installation process.

  6. Start Docker Desktop (see below).

If your administrator account is different to your user account, you must add the user to the docker-users group to access features that require higher privileges, such as creating and managing the Hyper-V VM, or using Windows containers:

  1. Run Computer Management as an administrator.
  2. Navigate to Local Users and Groups > Groups > docker-users.
  3. Right-click to add the user to the group.
  4. Sign out and sign back in for the changes to take effect.

Start Docker Desktop

Docker Desktop does not start automatically after installation. To start Docker Desktop:

  1. Search for Docker, and select Docker Desktop in the search results.

  2. The Docker menu displays the Docker Subscription Service Agreement.

    Here’s a summary of the key points:

    • Docker Desktop is free for small businesses (fewer than 250 employees AND less than $10 million in annual revenue), personal use, education, and non-commercial open source projects.
    • Otherwise, it requires a paid subscription for professional use.
    • Paid subscriptions are also required for government entities.
    • Docker Pro, Team, and Business subscriptions include commercial use of Docker Desktop.
  3. Select Accept to continue. Docker Desktop starts after you accept the terms.

    Note that Docker Desktop won’t run if you do not agree to the terms. You can choose to accept the terms at a later date by opening Docker Desktop.

    For more information, see Docker Desktop Subscription Service Agreement. It is recommended that you read the FAQs.