Installing Docker and running containers
If you are running Windows or macOS, you can download and install Docker Desktop from https://docs.docker.com/desktop/. If you are running a recent version of Ubuntu Linux, there is a version of Docker Desktop for you too. If you are running another Linux distribution, you’ll have to install Docker Engine. You can find detailed instructions for your distribution at https://docs.docker.com/engine/install/. Please pick a stable release for installation.
If you restart your computer, make sure that Docker Desktop is running. On Linux, you might have to execute the following code in your Terminal:
$ sudo systemctl start docker
If you want it to start automatically in case of a system restart, you can run the following command:
$ sudo systemctl enable docker
Regardless of the OS or tooling that you’ve installed (Desktop or Engine), it will come with the Docker CLI that we will be using, which is simply called docker
.