Add Docker’s official GPG key: #
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.ascAdd the repository to Apt sources: #
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt updateInstall Docker and enable/start it.
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now dockerAdding Hawser (if using Dockhand) #
If using Dockhand, you can now install Hawser (the Dockhand Agent) on the system.
curl -fsSL https://raw.githubusercontent.com/Finsys/hawser/main/scripts/install.sh | bashThen enable it and start it (make sure to include your token if need be in the config file /etc/hawser/config):
sudo systemctl enable --now hawser