Debrid Wiki

Docker

Zurg

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.

Remove old versions
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
Setup Docker's apt repository
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
 
# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

If you use an Ubuntu derivative distro, such as Linux Mint, you may need to use UBUNTU_CODENAME instead of VERSION_CODENAME.

Install Docker Engine
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Post-installation steps for Linux
sudo groupadd docker
sudo usermod -aG docker $USER

Log out and log back in so that your group membership is re-evaluated.

Verify installation
docker --version
docker run hello-world

On this page

Edit on Github