Installer Docker sur Debian Stretch SID - Docker ne démarre pas
(Plus)
Lors de mes précédents tests, j'arrivais bien à installer Docker
sur Debian Stretch 9 puis, j'étais alors passé en SID, et Docker
fonctionnait toujours.
J'ai complètement réinstallé le serveur mais je suis directement
passé en SID, et, j'ai tenté d'installer Docker par après.
Maintenant, je n'arrive pas à réinstaller Docker. Docker ne
démarre pas.
Le tutoriel que j'ai réutilisé pour ajouter le sources.list : https://www.itzgeek.com/how-tos/linux/debian/how-to-install-docker-on-debian-9.html
sudo apt-cache policy docker-ce docker-ce:
Installé : (aucun) Candidat : 5:18.09.0~3-0~debian-stretch
Table de version : 5:18.09.0~3-0~debian-stretch 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 100 /var/lib/dpkg/status 18.06.1~ce~3-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 18.06.0~ce~3-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 18.03.1~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 18.03.0~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.12.1~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.12.0~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.09.1~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.09.0~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.06.2~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.06.1~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.06.0~ce-0~debian 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.03.3~ce-0~debian-stretch 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.03.2~ce-0~debian-stretch 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.03.1~ce-0~debian-stretch 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Packages 17.03.0~ce-0~debian-stretch 500 500
https://download.docker.com/linux/debian stretch/stable amd64
Package
sudo apt-get -y install docker-ce Lecture des listes
de paquets... Fait Construction de l'arbre des dépendances
Lecture des informations d'état... Fait Les paquets
supplémentaires suivants seront installés : containerd.io
docker-ce-cli Paquets recommandés : aufs-tools cgroupfs-mount |
cgroup-lite git pigz xz-utils Les NOUVEAUX paquets suivants
seront installés : containerd.io docker-ce docker-ce-cli 0 mis à
jour, 3 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/50,4 Mo dans les archives.
Après cette opération, 242 Mo d'espace disque supplémentaires
seront utilisés. Sélection du paquet containerd.io précédemment
désélectionné. (Lecture de la base de données... 43900 fichiers
et répertoires déjà installés.) Préparation du dépaquetage de
.../containerd.io_1.2.0-1_amd64.deb ... Dépaquetage de
containerd.io (1.2.0-1) ... Sélection du paquet docker-ce-cli
précédemment désélectionné. Préparation du dépaquetage de
.../docker-ce-cli_5%3a18.09.0~3-0~debian-stretch_amd64.deb ...
Dépaquetage de docker-ce-cli (5:18.09.0~3-0~debian-stretch) ...
Sélection du paquet docker-ce précédemment désélectionné.
Préparation du dépaquetage de
.../docker-ce_5%3a18.09.0~3-0~debian-stretch_amd64.deb ...
Dépaquetage de docker-ce (5:18.09.0~3-0~debian-stretch) ...
Paramétrage de containerd.io (1.2.0-1) ... Traitement des
actions différées (« triggers ») pour man-db (2.8.4-3) ...
Paramétrage de docker-ce-cli (5:18.09.0~3-0~debian-stretch) ...
Paramétrage de docker-ce (5:18.09.0~3-0~debian-stretch) ...
update-alternatives: utilisation de « /usr/bin/dockerd-ce » pour
fournir « /usr/bin/dockerd » (dockerd) en mode automatique Job
for docker.service failed because the control process exited
with error code. See "systemctl status docker.service" and
"journalctl -xe" for details
systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled;
vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-12-10 02:42:23
CET; 5min ago
Docs: https://docs.docker.com
Process: 20283 ExecStart=/usr/bin/dockerd -H unix:// (code=exited,
status=1/FAILURE)
Main PID: 20283 (code=exited, status=1/FAILURE)
déc. 10 02:42:21 systemd[1]: docker.service: Main process
exited, code=exited, status=1/FAILURE
déc. 10 02:42:21 systemd[1]: docker.service: Failed with result
'exit-code'.
déc. 10 02:42:21 systemd[1]: Failed to start Docker Application
Container Engine.
déc. 10 02:42:23 systemd[1]: docker.service: Service
RestartSec=2s expired, scheduling restart.
déc. 10 02:42:23 systemd[1]: docker.service: Scheduled restart
job, restart counter is at 3.
déc. 10 02:42:23 systemd[1]: Stopped Docker Application Container
Engine.
déc. 10 02:42:23 systemd[1]: docker.service: Start request
repeated too quickly.
déc. 10 02:42:23 systemd[1]: docker.service: Failed with result
'exit-code'.
déc. 10 02:42:23 systemd[1]: Failed to start Docker Application
Container Engine.
sudo docker run hello-world
docker: Cannot connect to the Docker daemon at
unix:///var/run/docker.sock. Is the docker daemon running?.
Copie de la demande sur Github :
https://github.com/docker-library/docker/issues/135