Docker
Overview
Docker is a platform for developing, shipping, and running applications in containers. It allows you to separate you to separate applications from your machine and run them in a container. This is useful for many reasons, such as portability, isolation, and resource management. Docker is a very powerful tool and is used in many different applications.
Prerequisites
Installation
There are many different ways to install Docker, depending on your operating system. The official Docker documentation has a great guide on how to install Docker on your system. You can find the installation guide here.
What do we recommend? We recommend you to install Docker Engine instead of Docker Desktop (even for WSL2 to prevent any issues).
We will be assuming Linux (Ubuntu) for the rest of the guide. Guide for other OSes is not much different.
Linux (Ubuntu)
The following commands are for Ubuntu. For other distributions, please refer to the official documentation.
Official Docker Installation Guide will be followed. It is recommended to follow the official guide for the most up-to-date instructions.
Make sure to follow this post installation step to manage Docker as a non-root user if following the official guide.
If you use an Ubuntu derivative distro, such as Linux Mint, you may need to
use UBUNTU_CODENAME
instead of VERSION_CODENAME
.
Log out and log back in so that your group membership is re-evaluated.