The following will guide you trough installing Docker on your Strato instance.
- 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
- 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
- Update the APT packaging index
sudo apt update
- 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
- Verify that Docker is running
sudo systemctl --no-pager status docker
- 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