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.
Install dependencies and Torsocks
Section titled “Install dependencies and Torsocks”-
Ensure you are in the home directory
Terminal window cd ~/ -
Fetch latest updates
Terminal window sudo apt-get update -
Install dependencies
Terminal window sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common unzip -
Install Torsocks
Terminal window sudo apt install torsocks
Install Docker & Docker Compose
Section titled “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
Terminal window sudo apt-get updatesudo apt-get install ca-certificates curlsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.asc -
Add the repository to Apt sources
Terminal window 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/nullsudo apt-get update -
Install latest version of Docker and Docker Compose
Terminal window 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
Terminal window sudo usermod -aG docker $USER