le déjeuner était bien?
pas d'accord,
dans /var/lib/docker,
il y avait les containers et plein d'autres choses
dont 172.17.0.4 ainsi qu'un nom proche d'un point de reprise
j'ai fait dans /var/docker un rm -r -f *
ce nettoyage pour essayer de repartir sur de bonnes bases
j'ai réinstallé docker
la déinstallation de docker ne touche pas à
/var/lib/docker
[jb1@alpha30 ~]$ sudo yum remove docker \
> docker-common \
> docker-selinux \
> docker-engine-selinux \
> docker-engine \
> docker-ce
[sudo] Mot de passe de jb1 :
Aucune correspondance pour l’argument : docker-engine-selinux
Aucune correspondance pour l’argument : docker-ce
Dépendances résolues.
========================================================================================================================================================
Paquet Architecture Version Dépôt Taille
========================================================================================================================================================
Suppression :
container-selinux noarch 2:2.21-1.fc27 @System 34 k
docker x86_64 2:1.13.1-22.git27e468e.fc27 @System 69 M
docker-common x86_64 2:1.13.1-22.git27e468e.fc27 @System 1.8 k
Résumé de la transaction
========================================================================================================================================================
Supprimer 3 Paquets
Espace libéré : 69 M
Voulez-vous continuer ? [o/N] :o
Test de la transaction en cours
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
Exécution du scriptlet: None 1/1
Préparation : 1/1
Exécution du scriptlet: docker-2:1.13.1-22.git27e468e.fc27.x86_64 1/3
Suppression de : docker-2:1.13.1-22.git27e468e.fc27.x86_64 1/3
attention : /etc/sysconfig/docker-storage sauvé en tant que /etc/sysconfig/docker-storage.rpmsave
Exécution du scriptlet: docker-2:1.13.1-22.git27e468e.fc27.x86_64 1/3
Suppression de : container-selinux-2:2.21-1.fc27.noarch 2/3
Exécution du scriptlet: container-selinux-2:2.21-1.fc27.noarch 2/3
Suppression de : docker-common-2:1.13.1-22.git27e468e.fc27.x86_64 3/3
Vérification de : docker-2:1.13.1-22.git27e468e.fc27.x86_64 1/3
Vérification de : docker-common-2:1.13.1-22.git27e468e.fc27.x86_64 2/3
Vérification de : container-selinux-2:2.21-1.fc27.noarch 3/3
Supprimé:
container-selinux.noarch 2:2.21-1.fc27 docker.x86_64 2:1.13.1-22.git27e468e.fc27 docker-common.x86_64 2:1.13.1-22.git27e468e.fc27
Terminé !
[jb1@alpha30 ~]$ sudo docker images
sudo: docker : commande introuvable
[jb1@alpha30 ~]$ cd /var/lib/docker
[jb1@alpha30 docker]$ ls
ls: impossible d'ouvrir le répertoire '.': Permission non accordée
[jb1@alpha30 docker]$ su
Mot de passe :
[root@alpha30 docker]# ls -l
total 8
drwx------. 9 root root 4096 21 juil. 08:49 containers
drwx------. 3 root root 22 18 juil. 15:28 image
drwxr-x---. 3 root root 19 18 juil. 15:28 network
drwx------. 40 root root 4096 26 juil. 17:56 overlay2
drwx------. 4 root root 32 18 juil. 15:28 plugins
drwx------. 2 root root 6 18 juil. 15:28 swarm
drwx------. 2 root root 6 20 juil. 10:37 tmp
drwx------. 2 root root 6 18 juil. 15:28 trust
drwx------. 2 root root 25 18 juil. 15:28 volumes
[root@alpha30 docker]# cd image
[root@alpha30 image]# ls
overlay2
[root@alpha30 image]# cd o*
[root@alpha30 overlay2]# ls
distribution imagedb layerdb repositories.json
[root@alpha30 overlay2]# cd dis*
[root@alpha30 distribution]# ls
diffid-by-digest v2metadata-by-diffid
[root@alpha30 distribution]# cd ..
[root@alpha30 overlay2]# cd ..
[root@alpha30 image]# cd ..
[root@alpha30 docker]# cd cont*
[root@alpha30 containers]# ls
14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48 7078489b34126b611e67025d311e5a70a4efd42d8c10fd3ad1b18d27afcb523a
17e300c471339f07a901799d5f267242a9d96c8fda64d307a56beb4719a6dc6d 9f66adfa49e5ac63b13cc97fab765932e0d346716e222930656d5ee26143a30e
45d445911e2a2103e3108873fd28d16ebad30edb5fb87e3948ec6c22a00a462f c2f7d14e35f8f42a1981404849f5231f3603b65b1ff3ef1e9d21c66392db804b
621ee52b0218d13fa58d6d4b92eda472c3cd973fd0d74a3fbccc7c13b085683f
[root@alpha30 containers]# cd 14*
[root@alpha30 14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48]# ls
checkpoints config.v2.json hostconfig.json hostname hosts resolv.conf resolv.conf.hash shm
[root@alpha30 14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48]# pg hos*
::::::::::::::
hostconfig.json
::::::::::::::
{"Binds":null,"ContainerIDFile":"","LogConfig":{"Type":"journald","Config":{}},"NetworkMode":"default","PortBindings":{},"RestartPolicy":{"Name":"no","M
aximumRetryCount":0},"AutoRemove":false,"VolumeDriver":"","VolumesFrom":null,"CapAdd":null,"CapDrop":null,"Dns":[],"DnsOptions":[],"DnsSearch":[],"Extra
Hosts":null,"GroupAdd":null,"IpcMode":"","Cgroup":"","Links":[],"OomScoreAdj":0,"PidMode":"","Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs"
:false,"SecurityOpt":null,"UTSMode":"","UsernsMode":"","ShmSize":67108864,"Runtime":"oci","ConsoleSize":[0,0],"Isolation":"","CpuShares":0,"Memory":0,"N
anoCpus":0,"CgroupParent":"","BlkioWeight":0,"BlkioWeightDevice":null,"BlkioDeviceReadBps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceReadIOps":null,"B
lkioDeviceWriteIOps":null,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpusetCpus":"","CpusetMems":"","Devices":[],"DiskQuot
a":0,"KernelMemory":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":-1,"OomKillDisable":false,"PidsLimit":0,"Ulimits":null,"CpuCount":0,"CpuPe
rcent":0,"IOMaximumIOps":0,"IOMaximumBandwidth":0}
::::::::::::::
hostname
::::::::::::::
14d57436d5e7
::::::::::::::
hosts
::::::::::::::
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.4 14d57436d5e7
[root@alpha30 14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48]# cd ..
[root@alpha30 containers]# ls -lR
.:
total 0
drwx------. 4 root root 153 26 juil. 17:56 14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48
drwx------. 4 root root 153 26 juil. 17:56 17e300c471339f07a901799d5f267242a9d96c8fda64d307a56beb4719a6dc6d
drwx------. 3 root root 70 26 juil. 17:56 45d445911e2a2103e3108873fd28d16ebad30edb5fb87e3948ec6c22a00a462f
drwx------. 4 root root 153 26 juil. 17:56 621ee52b0218d13fa58d6d4b92eda472c3cd973fd0d74a3fbccc7c13b085683f
drwx------. 4 root root 153 26 juil. 17:56 7078489b34126b611e67025d311e5a70a4efd42d8c10fd3ad1b18d27afcb523a
drwx------. 4 root root 153 26 juil. 17:56 9f66adfa49e5ac63b13cc97fab765932e0d346716e222930656d5ee26143a30e
drwx------. 4 root root 153 26 juil. 17:56 c2f7d14e35f8f42a1981404849f5231f3603b65b1ff3ef1e9d21c66392db804b
./14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48:
total 24
drwx------. 2 root root 6 20 juil. 10:37 checkpoints
-rw-r--r--. 1 root root 2399 26 juil. 17:56 config.v2.json
-rw-r--r--. 1 root root 1115 26 juil. 17:56 hostconfig.json
-rw-r--r--. 1 root root 13 20 juil. 10:52 hostname
-rw-r--r--. 1 root root 174 20 juil. 10:52 hosts
-rw-r--r--. 1 root root 71 20 juil. 10:52 resolv.conf
-rw-r--r--. 1 root root 71 20 juil. 10:52 resolv.conf.hash
drwx------. 2 root root 6 20 juil. 10:37 shm
./14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48/checkpoints:
total 0
./14d57436d5e70d094afe3248361c8429034c1a0e33e6a67b4943c6b293621e48/shm:
total 0
./17e300c471339f07a901799d5f267242a9d96c8fda64d307a56beb4719a6dc6d:
total 24
drwx------. 2 root root 6 20 juil. 10:40 checkpoints
-rw-r--r--. 1 root root 2395 26 juil. 17:56 config.v2.json
-rw-r--r--. 1 root root 1115 26 juil. 17:56 hostconfig.json
-rw-r--r--. 1 root root 13 20 juil. 10:40 hostname
-rw-r--r--. 1 root root 174 20 juil. 10:40 hosts
-rw-r--r--. 1 root root 71 20 juil. 10:40 resolv.conf
-rw-r--r--. 1 root root 71 20 juil. 10:40 resolv.conf.hash
drwx------. 2 root root 6 20 juil. 10:40 shm
./17e300c471339f07a901799d5f267242a9d96c8fda64d307a56beb4719a6dc6d/checkpoints:
total 0
./17e300c471339f07a901799d5f267242a9d96c8fda64d307a56beb4719a6dc6d/shm:
total 0
./45d445911e2a2103e3108873fd28d16ebad30edb5fb87e3948ec6c22a00a462f:
total 8
drwx------. 2 root root 6 18 juil. 18:06 checkpoints
-rw-r--r--. 1 root root 1907 26 juil. 17:56 config.v2.json
-rw-r--r--. 1 root root 1115 26 juil. 17:56 hostconfig.json
./45d445911e2a2103e3108873fd28d16ebad30edb5f..................................
je ne sais pas comment on gére les points de reprise
sur le papier sudo docker restart