installer les paquets nécessaires prérequis :
apt install apt-transport-https ca-certificates gnupg2 software-properties-common
ajouter la clé GPG pour le référentiel Docker :
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
ajouter le dépôt Docker :
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
Mettre à jour la base de paquet :
apt update
Vérification du dépôt :
apt-cache policy docker-ce
Installation de Docker :
apt install docker-ce
Tester le fonctionnement :
docker run hello-world
Résultat attendu :
Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 719385e32844: Pull complete Digest: sha256:c79d06dfdfd3d3eb04cafd0dc2bacab0992ebc243e083cabe208bac4dd7759e0 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: ...