Written to provide a reference for later articles.

Operating System

CentOS

Install the required packages.

$ sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

Add the stable repository.

$ sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

Install Docker.

$ sudo yum install docker-ce docker-ce-cli containerd.io

Start Docker.

$ sudo systemctl start docker

Run the Hello World container.

$ sudo docker run hello-world

Debian

$ sudo apt-get update

Install the required packages.

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg2 \
    software-properties-common

Add Docker's official GPG key.

$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

Add the stable repository.

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"

$ sudo apt-get update

Install Docker.

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

Run the Hello World container.

$ sudo docker run hello-world

Fedora

Install the required packages.

$ sudo dnf -y install dnf-plugins-core

Add the stable repository.

$ sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo

Install Docker.

$ sudo dnf install docker-ce docker-ce-cli containerd.io

Start Docker.

$ sudo systemctl start docker

Run the Hello World container.

$ sudo docker run hello-world

Ubuntu

$ sudo apt-get update

Install the required packages.

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

Add Docker's official GPG key.

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the stable repository.

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

$ sudo apt-get update

Install Docker.

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

Run the Hello World container.

$ sudo docker run hello-world

The project should be working now.

Windows

Microsoft Windows 10 Professional or Enterprise 64-bit is required.

If Hyper-V is not active, it will be activated during installation. Due to Hyper-V, virtualization and emulators will not work.

After downloading and installing Docker Desktop, you should see the Docker icon in the bottom right corner.

Run the Hello World container.

docker run hello-world

MacOS

Apple Mac OS Sierra 10.12 or higher is required.

After downloading and installing Docker Desktop, you should see the Docker icon at the top.

Run the Hello World container.

docker run hello-world

References