Installation Docker
Centos
Nous allons installer Docker sur le host de type CentOS 7
Installation avec le package manager
Mettre à jour CentOS
sudo dnf update -yEnsuite installer les utilitaires yum
sudo dnf -y install dnf-plugins-coreAjouter le dépôt docker
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoInstaller Docker CE
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginDémarrer et activer le service Docker
sudo systemctl enable --now dockerAjouter l’utilisateur sadmin dans le groupe docker
sudo usermod -aG docker sadminVérifier l’installation: exécuter un premier conteneur basé sur l’image hello-world
newgrp dockerdocker run hello-worldUnable to find image 'hello-world:latest' locallylatest: Pulling from library/hello-world78445dd45222: Pull completeDigest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7 Status: Downloaded newer image for hello-world:latestHello from Docker!This message shows that your installation appears to be workingcorrectly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the DockerHub.