Skip to content

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.

  1. Ensure you are in the home directory

    Terminal window
    cd ~/
  2. Fetch latest updates

    Terminal window
    sudo apt-get update
  3. Install dependencies

    Terminal window
    sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common unzip
  4. Install Torsocks

    Terminal window
    sudo apt install torsocks

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.

  1. Add Docker’s official GPG key

    Terminal window
    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
  2. 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/null
    sudo apt-get update
  3. 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
  4. Add your current user account to the docker group

    Terminal window
    sudo usermod -aG docker $USER