The following will guide you trough installing Docker on your Strato instance.

  1. Fetch the appropriate GPG key, to verify the integrity of the software
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    
  2. Add the Docker repository to the list of sources in the APT packaging index
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    
  3. Update the APT packaging index
    sudo apt update
    
  4. Install Docker CE (Community Edition), Docker CE CLI (Command Line Interface) and containerd.io (a container runtime dependency).
    sudo apt install docker-ce docker-ce-cli containerd.io
    
  5. Verify that Docker is running
    sudo systemctl --no-pager status docker
    
  6. Add the current user to the appropriate Linux group "Docker". This is so you don't have to sudo all your docker commands.
    sudo usermod -aG docker ${USER} && newgrp docker