


You’ll see output like this, although the version number for Docker may be different: Make sure you are about to install from the Docker repo instead of the default Debian repo: Next, update the package database with the Docker packages from the newly added repo: sudo add-apt-repository "deb $(lsb_release -cs ) stable".Then add the GPG key for the official Docker repository to your system:Īdd the Docker repository to APT sources: sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common.Next, install a few prerequisite packages which let apt use packages over HTTPS: To do that, we’ll add a new package source, add the GPG key from Docker to ensure the downloads are valid, and then install the package.įirst, update your existing list of packages:

To ensure we get the latest version, we’ll install Docker from the official Docker repository. The Docker installation package available in the official Debian repository may not be the latest version.

