Install dependencies
All commands are to be copy and pasted into the terminal, then press ENTER.
When installing these dependencies, keep an eye on the screen. They will require you to type yes or y then press ENTER to continue with the install.
First, ensure you are in the home directory:
cd ~/
Fetch latest updates:
sudo apt-get update
Install dependencies:
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common unzip
Install Torsocks
sudo apt install torsocks
Install Docker & Docker Compose
Note: if you wish to follow the official installation guide for Docker and Docker Compose see here, otherwise continue with these more simple and easy to follow steps.
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
Install latest version of Docker and Docker Compose:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Add your current user account to the docker group:
sudo usermod -aG docker $USER