Many of these tutorials will assume Docker is installed on your system. Docker allows you to run software on your computer in containers that include the tested environment for running that software–regardless of your own operating system or other installed programs. If Docker is not already installed on your system, see below for instructions to install Docker on most major operating systems.
For more information about Docker, see the official Docker website
We recommend installing Docker via the Windows Subsystem for Linux (WSL 2). WSL 2 one of the latest features of Windows that supports natively running Linux right alongside Windows at the same time. This opens the Linux ecosystem up to Windows users and makes installing and using many Linux applications much simpler.
To enable WSL 2 on your Windows 10 installation, follow these directions from Microsoft. Scroll down to the Manual Installation Steps section and follow the instructions. Once you get to Step 6 these instructions will assume you have installed Ubuntu 20.04 LTS.
We recommend installing Windows Terminal at this time. Follow these directions from Microsoft to install Windows Terminal. Once installed you can easily access the command line of your new Ubuntu 20.04 LTS installation by launching Windows Terminal and clicking the menu icon as depicted below.
If you do not install Windows Terminal, you can access your new Ubuntu 20.04 LTS installation by opening
a command prompt (Press the Win + R keys on your keyboard, then type cmd, and press Enter on your keyboard or click/tap OK).
bash into the command prompt and hit enter.
Once you have completed the installation of WSL 2, please view the Ubuntu 20.04 section below to install Docker.
Follow the official directions to install Docker on macOS
Once installed and running, Docker may be accessed by opening a new Terminal and typing
Below are instructions and links to instructions for installing Docker on the most popular Linux distributions. If you installed WSL 2 on Windows per the instructions above, follow the Ubuntu 20.04 instructions.
Copy and paste each of the following commands, one by one, into the Linux terminal:
sudo apt update -y sudo apt install apt-transport-https ca-certificates curl software-properties-common -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" sudo apt update -y apt-cache policy docker-ce sudo apt install docker-ce -y # If you are on Windows, start Docker with: sudo service docker start
Other Linux Distributions
Please see the official Docker install guides for more information about installing Docker on other Linux distributions.