Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:docker3:drf01 [2023/08/18 14:26] adminelearning:workbooks:docker3:drf01 [2024/02/21 13:41] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2022.01**+Version : **2024.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
Ligne 21: Ligne 21:
       * Docker et Mirantis       * Docker et Mirantis
     * LAB #1 - Travailler avec Docker     * LAB #1 - Travailler avec Docker
-      * 1.1 - Installer docker+      * 1.1 - Installer docker sous Linux
         * 1.1.1 - Debian 11         * 1.1.1 - Debian 11
         * 1.1.2 - CentOS 8         * 1.1.2 - CentOS 8
Ligne 149: Ligne 149:
   * Docker Desktop Enterprise (DDE),   * Docker Desktop Enterprise (DDE),
     * une application Windows et Mac permettant la construction locale d'images Docker, le support de multiples IDE et l'intégration native de Docker avec l'OS.     * une application Windows et Mac permettant la construction locale d'images Docker, le support de multiples IDE et l'intégration native de Docker avec l'OS.
-    +    
 Docker EE est disponible en trois sous-versions, appelées des **Tiers** : Docker EE est disponible en trois sous-versions, appelées des **Tiers** :
  
Ligne 214: Ligne 214:
     * Une version instable de travaux en cours.     * Une version instable de travaux en cours.
  
-====1.1 - Installer docker====+====1.1 - Installer docker sous Linux====
  
 ===1.1.1 - Debian 11=== ===1.1.1 - Debian 11===
Ligne 391: Ligne 391:
 <code> <code>
 root@debian11:~# curl -fsSL https://get.docker.com -o get-docker.sh root@debian11:~# curl -fsSL https://get.docker.com -o get-docker.sh
 +
 root@debian11:~# ls root@debian11:~# ls
 get-docker.sh get-docker.sh
Ligne 399: Ligne 400:
 <code> <code>
 root@debian11:~# chmod +x get-docker.sh  root@debian11:~# chmod +x get-docker.sh 
 +
 root@debian11:~# ./get-docker.sh  root@debian11:~# ./get-docker.sh 
 # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b
Ligne 451: Ligne 453:
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que si l'image servant à générer le conteneur n'est pas présente sur le système hôte, celle-ci est téléchargée automatiquement depuis un dépôt ( par défaut le dépôt **docker.io** ) en utilisant la commande **docker pull**. **Important** - Notez que si l'image servant à générer le conteneur n'est pas présente sur le système hôte, celle-ci est téléchargée automatiquement depuis un dépôt ( par défaut le dépôt **docker.io** ) en utilisant la commande **docker pull**.
 </WRAP> </WRAP>
  
-===1.1.2 - CentOS 7 ou 8===+===1.1.2 - CentOS 8===
  
-Commencez par ajouter le dépôt de docker :+Connectez-vous à votre VM **CentOS_10.0.2.45_SSH** à partir de votre VM **Debian_10.0.2.46_SSH** : 
 + 
 +<code> 
 +root@debian11:~# ssh -l trainee 10.0.2.45 
 +The authenticity of host '10.0.2.45 (10.0.2.45)' can't be established. 
 +ECDSA key fingerprint is SHA256:Q7T/CP0SLiMbMAIgVzTuEHegYS/spPE5zzQchCHD5Vw. 
 +Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
 +Warning: Permanently added '10.0.2.45' (ECDSA) to the list of known hosts. 
 +trainee@10.0.2.45's password: trainee 
 +Activate the web console with: systemctl enable --now cockpit.socket 
 + 
 +Last login: Wed Nov 15 05:24:16 2023 from 10.0.2.1 
 +[trainee@centos8 ~]$ 
 +</code> 
 + 
 +Devenez root : 
 + 
 +<code> 
 +[trainee@centos8 ~]$ su - 
 +Password: fenestros 
 +[root@centos8 ~]#  
 +</code> 
 + 
 +Ajouter le dépôt de docker :
  
 <code> <code>
Ligne 474: Ligne 499:
  
 <code> <code>
-[root@centos8 ~]# yum remove podamn +[root@centos8 ~]# yum remove podman 
-...+Dependencies resolved. 
 +====================================================================================== 
 + Package           Arch    Version                                  Repository   Size 
 +====================================================================================== 
 +Removing: 
 + podman            x86_64  3.3.1-9.module_el8.5.0+988+b1f0b741      @appstream   48 M 
 +Removing dependent packages: 
 + cockpit-podman    noarch  33-1.module_el8.5.0+890+6b136101         @appstream  438 k 
 +Removing unused dependencies: 
 + conmon            x86_64  2:2.0.29-1.module_el8.5.0+890+6b136101   @appstream  164 k 
 + podman-catatonit  x86_64  3.3.1-9.module_el8.5.0+988+b1f0b741      @appstream  760 k 
 + 
 +Transaction Summary 
 +====================================================================================== 
 +Remove  4 Packages 
 + 
 +Freed space: 49 M 
 +Is this ok [y/N]: y 
 +Running transaction check 
 +Transaction check succeeded. 
 +Running transaction test 
 +Transaction test succeeded. 
 +Running transaction 
 +  Preparing        :                                                              1/1  
 +  Running scriptlet: cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch       1/1  
 +  Erasing          : cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch       1/4  
 +  Erasing          : podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64            2/4  
 +  Running scriptlet: podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64            2/4  
 +  Erasing          : podman-catatonit-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_6   3/4  
 +  Erasing          : conmon-2:2.0.29-1.module_el8.5.0+890+6b136101.x86_64         4/4  
 +  Running scriptlet: conmon-2:2.0.29-1.module_el8.5.0+890+6b136101.x86_64         4/4  
 +  Verifying        : cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch       1/4  
 +  Verifying        : conmon-2:2.0.29-1.module_el8.5.0+890+6b136101.x86_64         2/4  
 +  Verifying        : podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64            3/4  
 +  Verifying        : podman-catatonit-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_6   4/4  
 +Installed products updated. 
 + 
 +Removed: 
 +  cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch                               
 +  conmon-2:2.0.29-1.module_el8.5.0+890+6b136101.x86_64                                 
 +  podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64                                    
 +  podman-catatonit-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64                          
 + 
 +Complete! 
 [root@centos8 ~]# yum install docker-ce docker-ce-cli containerd.io --allowerasing [root@centos8 ~]# yum install docker-ce docker-ce-cli containerd.io --allowerasing
 Last metadata expiration check: 0:05:43 ago on Fri 18 Aug 2023 16:04:20 CEST. Last metadata expiration check: 0:05:43 ago on Fri 18 Aug 2023 16:04:20 CEST.
Ligne 592: Ligne 661:
      Docs: https://docs.docker.com      Docs: https://docs.docker.com
 [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Appuyez sur la touche q [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Appuyez sur la touche q
 +
 [root@centos8 ~]# systemctl start docker [root@centos8 ~]# systemctl start docker
 +
 [root@centos8 ~]# systemctl status docker [root@centos8 ~]# systemctl status docker
 ● docker.service - Docker Application Container Engine ● docker.service - Docker Application Container Engine
Ligne 615: Ligne 686:
 [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Appuyez sur la touche q [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Appuyez sur la touche q
 [root@centos8 ~]#  [root@centos8 ~]# 
 +</code>
  
 Dans le cas où vous souhaitez installer une version différente, il convient d'abord de constater les versions disponibles : Dans le cas où vous souhaitez installer une version différente, il convient d'abord de constater les versions disponibles :
Ligne 622: Ligne 694:
 Last metadata expiration check: 0:03:42 ago on Fri 18 Aug 2023 16:11:47 CEST. Last metadata expiration check: 0:03:42 ago on Fri 18 Aug 2023 16:11:47 CEST.
 Installed Packages Installed Packages
-docker-ce.x86_64               3:24.0.5-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.5-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:24.0.5-1.el8                  @docker-ce-stable +docker-ce.x86_64 3:24.0.5-1.el8 @docker-ce-stable 
-docker-ce.x86_64               3:24.0.4-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.4-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:24.0.3-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.3-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:24.0.2-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.2-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:24.0.1-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.1-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:24.0.0-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:24.0.0-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.6-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.6-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.5-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.5-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.4-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.4-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.3-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.3-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.2-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.2-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.1-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.1-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:23.0.0-1.el8                  docker-ce-stable  +docker-ce.x86_64 3:23.0.0-1.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.9-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.9-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.8-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.8-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.7-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.7-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.6-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.6-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.5-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.5-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.4-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.4-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.3-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.3-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.24-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.24-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.2-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.2-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.23-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.23-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.22-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.22-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.21-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.21-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.20-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.20-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.19-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.19-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.18-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.18-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.17-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.17-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.16-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.16-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.15-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.15-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.14-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.14-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.1-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.1-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.13-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.13-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.12-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.12-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.11-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.11-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.10-3.el8                docker-ce-stable  +docker-ce.x86_64 3:20.10.10-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:20.10.0-3.el8                 docker-ce-stable  +docker-ce.x86_64 3:20.10.0-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:19.03.15-3.el8                docker-ce-stable  +docker-ce.x86_64 3:19.03.15-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:19.03.14-3.el8                docker-ce-stable  +docker-ce.x86_64 3:19.03.14-3.el8 docker-ce-stable  
-docker-ce.x86_64               3:19.03.13-3.el8                docker-ce-stable +docker-ce.x86_64 3:19.03.13-3.el8 docker-ce-stable  
 +Available Packages 
 + 
 +[root@centos8 ~]# yum list docker-ce-cli --showduplicates | sort -r 
 +Last metadata expiration check: 0:08:33 ago on Thu 14 Dec 2023 09:52:33 EST. 
 +docker-ce-cli.x86_64              1:24.0.7-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.6-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.5-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.4-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.3-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.2-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.1-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:24.0.0-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.6-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.5-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.4-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.3-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.2-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.1-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:23.0.0-1.el8                docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.9-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.8-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.7-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.6-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.5-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.4-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.3-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.24-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.2-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.23-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.22-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.21-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.20-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.19-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.18-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.17-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.16-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.15-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.14-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.1-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.13-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.12-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.11-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.10-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:20.10.0-3.el8               docker-ce-stable 
 +docker-ce-cli.x86_64              1:19.03.15-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:19.03.14-3.el8              docker-ce-stable 
 +docker-ce-cli.x86_64              1:19.03.13-3.el8              docker-ce-stable
 Available Packages Available Packages
 </code> </code>
  
-Dans le cas où vous souhaiteriez installer la version **24.0.1** de Docker, la commande d’installation deviendrait :+Dans le cas où vous souhaiteriez installer la version **24.0.4** de Docker, la commande d’installation deviendrait :
  
 <code> <code>
-# yum install docker-ce=3:24.0.4-1.el8  docker-ce-cli=3:24.0.4-1.el8  containerd.io+# yum install docker-ce-3:24.0.4-1.el8  docker-ce-cli-1:24.0.4-1.el8  containerd.io
 </code> </code>
  
Ligne 681: Ligne 800:
 <code> <code>
 [root@centos8 ~]# curl -fsSL https://get.docker.com -o get-docker.sh [root@centos8 ~]# curl -fsSL https://get.docker.com -o get-docker.sh
 +
 [root@centos8 ~]# ls [root@centos8 ~]# ls
 anaconda-ks.cfg                  Downloads             Music      Videos anaconda-ks.cfg                  Downloads             Music      Videos
Ligne 692: Ligne 812:
 <code> <code>
 [root@centos8 ~]# chmod +x get-docker.sh [root@centos8 ~]# chmod +x get-docker.sh
 +
 [root@centos8 ~]# ./get-docker.sh  [root@centos8 ~]# ./get-docker.sh 
 # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b
Ligne 744: Ligne 865:
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que si l'image servant à générer le conteneur n'est pas présente sur le système hôte, celle-ci est téléchargée automatiquement depuis un dépôt ( par défaut le dépôt **docker.io** ) en utilisant la commande **docker pull**. **Important** - Notez que si l'image servant à générer le conteneur n'est pas présente sur le système hôte, celle-ci est téléchargée automatiquement depuis un dépôt ( par défaut le dépôt **docker.io** ) en utilisant la commande **docker pull**.
 </WRAP> </WRAP>
- 
- 
  
 ====1.2 - Démarrer un Conteneur==== ====1.2 - Démarrer un Conteneur====
Ligne 755: Ligne 874:
  
 <code> <code>
-root@debian9:~# docker run -it ubuntu bash+root@debian11:~# docker run -it ubuntu bash
 Unable to find image 'ubuntu:latest' locally Unable to find image 'ubuntu:latest' locally
 latest: Pulling from library/ubuntu latest: Pulling from library/ubuntu
-898c46f3b1a1: Pull complete  +b237fe92c417: Pull complete  
-63366dfa0a50: Pull complete  +Digest: sha256:ec050c32e4a6085b423d36ecd025c0d3ff00c38ab93a3d71a460ff1c44fa6d77
-041d4cd74a92: Pull complete  +
-6e1bee0f8701: Pull complete  +
-Digest: sha256:017eef0b616011647b269b5c65826e2e2ebddbe5d1f8c1e56b3599fb14fabec8+
 Status: Downloaded newer image for ubuntu:latest Status: Downloaded newer image for ubuntu:latest
-root@3a3f9bda6cbd:/# ls + 
-bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@83b0d8979a33:/# ls 
-root@3a3f9bda6cbd:/# cat /etc/lsb-release+bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@83b0d8979a33:/# cat /etc/lsb-release 
 DISTRIB_ID=Ubuntu DISTRIB_ID=Ubuntu
-DISTRIB_RELEASE=18.04 +DISTRIB_RELEASE=22.04 
-DISTRIB_CODENAME=bionic +DISTRIB_CODENAME=jammy 
-DISTRIB_DESCRIPTION="Ubuntu 18.04.LTS"+DISTRIB_DESCRIPTION="Ubuntu 22.04.LTS"
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que dans ce cas le conteneur est lancé avec comme argument **bash** qui lancera /bin/bash dans le conteneur. **Important** - Notez que dans ce cas le conteneur est lancé avec comme argument **bash** qui lancera /bin/bash dans le conteneur.
 </WRAP> </WRAP>
Ligne 780: Ligne 898:
  
 <code> <code>
-root@835001339e79:/# dpkg -l+root@83b0d8979a33:/# dpkg -l
 Desired=Unknown/Install/Remove/Purge/Hold Desired=Unknown/Install/Remove/Purge/Hold
 | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
-||/ Name                                 Version                 Architecture            Description +||/ Name                    Version                                 Architecture Description 
-+++-====================================-=======================-=======================-============================================================================= ++++-=======================-=======================================-============-======================================================================== 
-ii  adduser                              3.116ubuntu1            all                     add and remove users and groups +ii  adduser                 3.118ubuntu5                            all          add and remove users and groups 
-ii  apt                                  1.6.8                   amd64                   commandline package manager +ii  apt                     2.4.9                                   amd64        commandline package manager 
-ii  base-files                           10.1ubuntu2.4           amd64                   Debian base system miscellaneous files +ii  base-files              12ubuntu4.4                             amd64        Debian base system miscellaneous files 
-ii  base-passwd                          3.5.44                  amd64                   Debian base system master password and group files +ii  base-passwd             3.5.52build1                            amd64        Debian base system master password and group files 
-ii  bash                                 4.4.18-2ubuntu1         amd64                   GNU Bourne Again SHell +ii  bash                    5.1-6ubuntu1                            amd64        GNU Bourne Again SHell 
-ii  bsdutils                             1:2.31.1-0.4ubuntu3.3   amd64                   basic utilities from 4.4BSD-Lite +ii  bsdutils                1:2.37.2-4ubuntu3                       amd64        basic utilities from 4.4BSD-Lite 
-ii  bzip2                                1.0.6-8.1               amd64                   high-quality block-sorting file compressor - utilities +ii  coreutils               8.32-4.1ubuntu1                         amd64        GNU core utilities 
-ii  coreutils                            8.28-1ubuntu1           amd64                   GNU core utilities +ii  dash                    0.5.11+git20210903+057cd650a4ed-3build1 amd64        POSIX-compliant shell 
-ii  dash                                 0.5.8-2.10              amd64                   POSIX-compliant shell +ii  debconf                 1.5.79ubuntu1                           all          Debian configuration management system 
-ii  debconf                              1.5.66                  all                     Debian configuration management system +ii  debianutils             5.5-1ubuntu2                            amd64        Miscellaneous utilities specific to Debian 
-ii  debianutils                          4.8.4                   amd64                   Miscellaneous utilities specific to Debian +ii  diffutils               1:3.8-0ubuntu2                          amd64        File comparison utilities 
-ii  diffutils                            1:3.6-1                 amd64                   File comparison utilities +ii  dpkg                    1.21.1ubuntu2.2                         amd64        Debian package management system 
-ii  dpkg                                 1.19.0.5ubuntu2.1       amd64                   Debian package management system +ii  e2fsprogs               1.46.5-2ubuntu1.1                       amd64        ext2/ext3/ext4 file system utilities 
-ii  e2fsprogs                            1.44.1-1ubuntu1.1       amd64                   ext2/ext3/ext4 file system utilities +ii  findutils               4.8.0-1ubuntu3                          amd64        utilities for finding files--find, xargs 
-ii  fdisk                                2.31.1-0.4ubuntu3.3     amd64                   collection of partitioning utilities +ii  gcc-12-base:amd64       12.3.0-1ubuntu1~22.04                   amd64        GCC, the GNU Compiler Collection (base package) 
-ii  findutils                            4.6.0+git+20170828-2    amd64                   utilities for finding files--find, xargs +ii  gpgv                    2.2.27-3ubuntu2.1                       amd64        GNU privacy guard - signature verification tool 
-ii  gcc-8-base:amd64                     8.2.0-1ubuntu2~18.04    amd64                   GCC, the GNU Compiler Collection (base package) +ii  grep                    3.7-1build1                             amd64        GNU grep, egrep and fgrep 
-ii  gpgv                                 2.2.4-1ubuntu1.       amd64                   GNU privacy guard - signature verification tool +ii  gzip                    1.10-4ubuntu4.1                         amd64        GNU compression utilities 
-ii  grep                                 3.1-2                   amd64                   GNU grep, egrep and fgrep +ii  hostname                3.23ubuntu2                             amd64        utility to set/show the host name or domain name 
-ii  gzip                                 1.6-5ubuntu1            amd64                   GNU compression utilities +ii  init-system-helpers     1.62                                    all          helper tools for all init systems 
-ii  hostname                             3.20                    amd64                   utility to set/show the host name or domain name +ii  libacl1:amd64           2.3.1-1                                 amd64        access control list shared library 
-ii  init-system-helpers                  1.51                    all                     helper tools for all init systems +ii  libapt-pkg6.0:amd64     2.4.9                                   amd64        package management runtime library 
-ii  libacl1:amd64                        2.2.52-3build1          amd64                   Access control list shared library +ii  libattr1:amd64          1:2.5.1-1build1                         amd64        extended attribute handling - shared library 
-ii  libapt-pkg5.0:amd64                  1.6.8                   amd64                   package management runtime library +ii  libaudit-common         1:3.0.7-1build1                         all          Dynamic library for security auditing - common files 
-ii  libattr1:amd64                       1:2.4.47-2build1        amd64                   Extended attribute shared library +ii  libaudit1:amd64         1:3.0.7-1build1                         amd64        Dynamic library for security auditing 
-ii  libaudit-common                      1:2.8.2-1ubuntu1        all                     Dynamic library for security auditing - common files +ii  libblkid1:amd64         2.37.2-4ubuntu3                         amd64        block device ID library 
-ii  libaudit1:amd64                      1:2.8.2-1ubuntu1        amd64                   Dynamic library for security auditing +ii  libbz2-1.0:amd64        1.0.8-5build1                           amd64        high-quality block-sorting file compressor library - runtime 
-ii  libblkid1:amd64                      2.31.1-0.4ubuntu3.3     amd64                   block device ID library +ii  libc-bin                2.35-0ubuntu3.1                         amd64        GNU C Library: Binaries 
-ii  libbz2-1.0:amd64                     1.0.6-8.1               amd64                   high-quality block-sorting file compressor library - runtime +ii  libc6:amd64             2.35-0ubuntu3.1                         amd64        GNU C Library: Shared libraries 
-ii  libc-bin                             2.27-3ubuntu1           amd64                   GNU C Library: Binaries +ii  libcap-ng0:amd64        0.7.9-2.2build3                         amd64        An alternate POSIX capabilities library 
-ii  libc6:amd64                          2.27-3ubuntu1           amd64                   GNU C Library: Shared libraries +ii  libcap2:amd64           1:2.44-1ubuntu0.22.04.1                 amd64        POSIX 1003.1e capabilities (library) 
-ii  libcap-ng0:amd64                     0.7.7-3.1               amd64                   An alternate POSIX capabilities library +ii  libcom-err2:amd64       1.46.5-2ubuntu1.1                       amd64        common error description library 
-ii  libcom-err2:amd64                    1.44.1-1ubuntu1.1       amd64                   common error description library +ii  libcrypt1:amd64         1:4.4.27-1                              amd64        libcrypt shared library 
-ii  libdb5.3:amd64                       5.3.28-13.1ubuntu1      amd64                   Berkeley v5.3 Database Libraries [runtime] +ii  libdb5.3:amd64          5.3.28+dfsg1-0.8ubuntu3                 amd64        Berkeley v5.3 Database Libraries [runtime] 
-ii  libdebconfclient0:amd64              0.213ubuntu1            amd64                   Debian Configuration Management System (C-implementation library) +ii  libdebconfclient0:amd64 0.261ubuntu1                            amd64        Debian Configuration Management System (C-implementation library) 
-ii  libext2fs2:amd64                     1.44.1-1ubuntu1.1       amd64                   ext2/ext3/ext4 file system libraries +ii  libext2fs2:amd64        1.46.5-2ubuntu1.1                       amd64        ext2/ext3/ext4 file system libraries 
-ii  libfdisk1:amd64                      2.31.1-0.4ubuntu3.3     amd64                   fdisk partitioning library +ii  libffi8:amd64           3.4.2-4                                 amd64        Foreign Function Interface library runtime 
-ii  libffi6:amd64                        3.2.1-8                 amd64                   Foreign Function Interface library runtime +ii  libgcc-s1:amd64         12.3.0-1ubuntu1~22.04                   amd64        GCC support library 
-ii  libgcc1:amd64                        1:8.2.0-1ubuntu2~18.04  amd64                   GCC support library +ii  libgcrypt20:amd64       1.9.4-3ubuntu3                          amd64        LGPL Crypto library - runtime library 
-ii  libgcrypt20:amd64                    1.8.1-4ubuntu1.1        amd64                   LGPL Crypto library - runtime library +ii  libgmp10:amd64          2:6.2.1+dfsg-3ubuntu1                   amd64        Multiprecision arithmetic library 
-ii  libgmp10:amd64                       2:6.1.2+dfsg-2          amd64                   Multiprecision arithmetic library +ii  libgnutls30:amd64       3.7.3-4ubuntu1.2                        amd64        GNU TLS library - main runtime library 
-ii  libgnutls30:amd64                    3.5.18-1ubuntu1         amd64                   GNU TLS library - main runtime library +ii  libgpg-error0:amd64     1.43-3                                  amd64        GnuPG development runtime library 
-ii  libgpg-error0:amd64                  1.27-6                  amd64                   library for common error values and messages in GnuPG components +ii  libgssapi-krb5-2:amd64  1.19.2-2ubuntu0.2                       amd64        MIT Kerberos runtime libraries - krb5 GSS-API Mechanism 
-ii  libhogweed4:amd64                    3.4-1                   amd64                   low level cryptographic library (public-key cryptos) +ii  libhogweed6:amd64       3.7.3-1build2                           amd64        low level cryptographic library (public-key cryptos) 
-ii  libidn2-0:amd64                      2.0.4-1.1build2         amd64                   Internationalized domain names (IDNA2008/TR46) library +ii  libidn2-0:amd64         2.3.2-2build1                           amd64        Internationalized domain names (IDNA2008/TR46) library 
-ii  liblz4-1:amd64                       0.0~r131-2ubuntu3       amd64                   Fast LZ compression algorithm library - runtime +ii  libk5crypto3:amd64      1.19.2-2ubuntu0.2                       amd64        MIT Kerberos runtime libraries - Crypto Library 
-ii  liblzma5:amd64                       5.2.2-1.3               amd64                   XZ-format compression library +ii  libkeyutils1:amd64      1.6.1-2ubuntu3                          amd64        Linux Key Management Utilities (library) 
-ii  libmount1:amd64                      2.31.1-0.4ubuntu3.3     amd64                   device mounting library +ii  libkrb5-3:amd64         1.19.2-2ubuntu0.2                       amd64        MIT Kerberos runtime libraries 
-ii  libncurses5:amd64                    6.1-1ubuntu1.18.04      amd64                   shared libraries for terminal handling +ii  libkrb5support0:amd64   1.19.2-2ubuntu0.2                       amd64        MIT Kerberos runtime libraries - Support library 
-ii  libncursesw5:amd64                   6.1-1ubuntu1.18.04      amd64                   shared libraries for terminal handling (wide character support) +ii  liblz4-1:amd64          1.9.3-2build2                           amd64        Fast LZ compression algorithm library - runtime 
-ii  libnettle6:amd64                     3.4-1                   amd64                   low level cryptographic library (symmetric and one-way cryptos) +ii  liblzma5:amd64          5.2.5-2ubuntu1                          amd64        XZ-format compression library 
-ii  libp11-kit0:amd64                    0.23.9-2                amd64                   library for loading and coordinating access to PKCS#11 modules - runtime +ii  libmount1:amd64         2.37.2-4ubuntu3                         amd64        device mounting library 
-ii  libpam-modules:amd64                 1.1.8-3.6ubuntu2.18.04. amd64                   Pluggable Authentication Modules for PAM +ii  libncurses6:amd64       6.3-2ubuntu0.1                          amd64        shared libraries for terminal handling 
-ii  libpam-modules-bin                   1.1.8-3.6ubuntu2.18.04. amd64                   Pluggable Authentication Modules for PAM - helper binaries +ii  libncursesw6:amd64      6.3-2ubuntu0.1                          amd64        shared libraries for terminal handling (wide character support) 
-ii  libpam-runtime                       1.1.8-3.6ubuntu2.18.04. all                     Runtime support for the PAM library +ii  libnettle8:amd64        3.7.3-1build2                           amd64        low level cryptographic library (symmetric and one-way cryptos) 
-ii  libpam0g:amd64                       1.1.8-3.6ubuntu2.18.04. amd64                   Pluggable Authentication Modules library +ii  libnsl2:amd64           1.3.0-2build2                           amd64        Public client interface for NIS(YP) and NIS+ 
-ii  libpcre3:amd64                       2:8.39-               amd64                   Old Perl 5 Compatible Regular Expression Library - runtime files +ii  libp11-kit0:amd64       0.24.0-6build1                          amd64        library for loading and coordinating access to PKCS#11 modules - runtime 
-ii  libprocps6:amd64                     2:3.3.12-3ubuntu1.1     amd64                   library for accessing process information from /proc +ii  libpam-modules:amd64    1.4.0-11ubuntu2.3                       amd64        Pluggable Authentication Modules for PAM 
-ii  libseccomp2:amd64                    2.3.1-2.1ubuntu4        amd64                   high level interface to Linux seccomp filter +ii  libpam-modules-bin      1.4.0-11ubuntu2.                      amd64        Pluggable Authentication Modules for PAM - helper binaries 
-ii  libselinux1:amd64                    2.7-2build2             amd64                   SELinux runtime shared libraries +ii  libpam-runtime          1.4.0-11ubuntu2.                      all          Runtime support for the PAM library 
-ii  libsemanage-common                   2.7-2build2             all                     Common files for SELinux policy management libraries +ii  libpam0g:amd64          1.4.0-11ubuntu2.3                       amd64        Pluggable Authentication Modules library 
-ii  libsemanage1:amd64                   2.7-2build2             amd64                   SELinux policy management library +ii  libpcre2-8-0:amd64      10.39-3ubuntu0.1                        amd64        New Perl Compatible Regular Expression Library- 8 bit runtime files 
-ii  libsepol1:amd64                      2.7-1                   amd64                   SELinux library for manipulating binary security policies +ii  libpcre3:amd64          2:8.39-13ubuntu0.22.04.1                amd64        Old Perl 5 Compatible Regular Expression Library - runtime files 
-ii  libsmartcols1:amd64                  2.31.1-0.4ubuntu3.3     amd64                   smart column output alignment library +ii  libprocps8:amd64        2:3.3.17-6ubuntu2                       amd64        library for accessing process information from /proc 
-ii  libss2:amd64                         1.44.1-1ubuntu1.1       amd64                   command-line interface parsing library +ii  libseccomp2:amd64       2.5.3-2ubuntu2                          amd64        high level interface to Linux seccomp filter 
-ii  libstdc++6:amd64                     8.2.0-1ubuntu2~18.04    amd64                   GNU Standard C++ Library v3 +ii  libselinux1:amd64       3.3-1build2                             amd64        SELinux runtime shared libraries 
-ii  libsystemd0:amd64                    237-3ubuntu10.13        amd64                   systemd utility library +ii  libsemanage-common      3.3-1build2                             all          Common files for SELinux policy management libraries 
-ii  libtasn1-6:amd64                     4.13-2                  amd64                   Manage ASN.1 structures (runtime) +ii  libsemanage2:amd64      3.3-1build2                             amd64        SELinux policy management library 
-ii  libtinfo5:amd64                      6.1-1ubuntu1.18.04      amd64                   shared low-level terminfo library for terminal handling +ii  libsepol2:amd64         3.3-1build1                             amd64        SELinux library for manipulating binary security policies 
-ii  libudev1:amd64                       237-3ubuntu10.13        amd64                   libudev shared library +ii  libsmartcols1:amd64     2.37.2-4ubuntu3                         amd64        smart column output alignment library 
-ii  libunistring2:amd64                  0.9.9-0ubuntu1          amd64                   Unicode string library for C +ii  libss2:amd64            1.46.5-2ubuntu1.1                       amd64        command-line interface parsing library 
-ii  libuuid1:amd64                       2.31.1-0.4ubuntu3.3     amd64                   Universally Unique ID library +ii  libssl3:amd64           3.0.2-0ubuntu1.10                       amd64        Secure Sockets Layer toolkit - shared libraries 
-ii  libzstd1:amd64                       1.3.3+dfsg-2ubuntu1     amd64                   fast lossless compression algorithm +ii  libstdc++6:amd64        12.3.0-1ubuntu1~22.04                   amd64        GNU Standard C++ Library v3 
-ii  login                                1:4.5-1ubuntu1          amd64                   system login tools +ii  libsystemd0:amd64       249.11-0ubuntu3.9                       amd64        systemd utility library 
-ii  lsb-base                             9.20170808ubuntu1       all                     Linux Standard Base init script functionality +ii  libtasn1-6:amd64        4.18.0-4build1                          amd64        Manage ASN.1 structures (runtime) 
-ii  mawk                                 1.3.3-17ubuntu3         amd64                   a pattern scanning and text processing language +ii  libtinfo6:amd64         6.3-2ubuntu0.1                          amd64        shared low-level terminfo library for terminal handling 
-ii  mount                                2.31.1-0.4ubuntu3.3     amd64                   tools for mounting and manipulating filesystems +ii  libtirpc-common         1.3.2-2ubuntu0.1                        all          transport-independent RPC library - common files 
-ii  ncurses-base                         6.1-1ubuntu1.18.04      all                     basic terminal type definitions +ii  libtirpc3:amd64         1.3.2-2ubuntu0.1                        amd64        transport-independent RPC library 
-ii  ncurses-bin                          6.1-1ubuntu1.18.04      amd64                   terminal-related programs and man pages +ii  libudev1:amd64          249.11-0ubuntu3.9                       amd64        libudev shared library 
-ii  passwd                               1:4.5-1ubuntu1          amd64                   change and administer password and group data +ii  libunistring2:amd64     1.0-1                                   amd64        Unicode string library for C 
-ii  perl-base                            5.26.1-6ubuntu0.3       amd64                   minimal Perl system +ii  libuuid1:amd64          2.37.2-4ubuntu3                         amd64        Universally Unique ID library 
-ii  procps                               2:3.3.12-3ubuntu1.1     amd64                   /proc file system utilities +ii  libxxhash0:amd64        0.8.1-1                                 amd64        shared library for xxhash 
-ii  sed                                  4.4-2                   amd64                   GNU stream editor for filtering/transforming text +ii  libzstd1:amd64          1.4.8+dfsg-3build1                      amd64        fast lossless compression algorithm 
-ii  sensible-utils                       0.0.12                  all                     Utilities for sensible alternative selection +ii  login                   1:4.8.1-2ubuntu2.1                      amd64        system login tools 
-ii  sysvinit-utils                       2.88dsf-59.10ubuntu1    amd64                   System-V-like utilities +ii  logsave                 1.46.5-2ubuntu1.1                       amd64        save the output of a command in a log file 
-ii  tar                                  1.29b-2ubuntu0.1        amd64                   GNU version of the tar archiving utility +ii  lsb-base                11.1.0ubuntu4                           all          Linux Standard Base init script functionality 
-ii  ubuntu-keyring                       2018.09.18.1~18.04.0    all                     GnuPG keys of the Ubuntu archive +ii  mawk                    1.3.4.20200120-3                        amd64        Pattern scanning and text processing language 
-ii  util-linux                           2.31.1-0.4ubuntu3.3     amd64                   miscellaneous system utilities +ii  mount                   2.37.2-4ubuntu3                         amd64        tools for mounting and manipulating filesystems 
-ii  zlib1g:amd64                         1:1.2.11.dfsg-0ubuntu2  amd64                   compression library - runtime +ii  ncurses-base            6.3-2ubuntu0.1                          all          basic terminal type definitions 
-root@835001339e79:/# exit+ii  ncurses-bin             6.3-2ubuntu0.1                          amd64        terminal-related programs and man pages 
 +ii  passwd                  1:4.8.1-2ubuntu2.1                      amd64        change and administer password and group data 
 +ii  perl-base               5.34.0-3ubuntu1.2                       amd64        minimal Perl system 
 +ii  procps                  2:3.3.17-6ubuntu2                       amd64        /proc file system utilities 
 +ii  sed                     4.8-1ubuntu2                            amd64        GNU stream editor for filtering/transforming text 
 +ii  sensible-utils          0.0.17                                  all          Utilities for sensible alternative selection 
 +ii  sysvinit-utils          3.01-1ubuntu1                           amd64        System-V-like utilities 
 +ii  tar                     1.34+dfsg-1ubuntu0.1.22.04.1            amd64        GNU version of the tar archiving utility 
 +ii  ubuntu-keyring          2021.03.26                              all          GnuPG keys of the Ubuntu archive 
 +ii  usrmerge                25ubuntu2                               all          Convert the system to the merged /usr directories scheme 
 +ii  util-linux              2.37.2-4ubuntu3                         amd64        miscellaneous system utilities 
 +ii  zlib1g:amd64            1:1.2.11.dfsg-2ubuntu9.2                amd64        compression library - runtime 
 +root@83b0d8979a33:/# exit
 exit exit
-root@debian9:~# +root@debian11:~# 
 </code> </code>
  
Ligne 883: Ligne 1013:
  
 <code> <code>
-root@debian9:~# docker run --help+root@debian11:~# docker run --help 
 + 
 +Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
  
-Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]+Create and run a new container from an image
  
-Run a command in a new container+Aliases: 
 +  docker container run, docker run
  
 Options: Options:
       --add-host list                  Add a custom host-to-IP mapping (host:ip)       --add-host list                  Add a custom host-to-IP mapping (host:ip)
 +      --annotation map                 Add an annotation to the container (passed through to the OCI runtime) (default map[])
   -a, --attach list                    Attach to STDIN, STDOUT or STDERR   -a, --attach list                    Attach to STDIN, STDOUT or STDERR
       --blkio-weight uint16            Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)       --blkio-weight uint16            Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)
Ligne 897: Ligne 1031:
       --cap-drop list                  Drop Linux capabilities       --cap-drop list                  Drop Linux capabilities
       --cgroup-parent string           Optional parent cgroup for the container       --cgroup-parent string           Optional parent cgroup for the container
 +      --cgroupns string                Cgroup namespace to use (host|private)
 +                                       'host':    Run the container in the Docker host's cgroup namespace
 +                                       'private': Run the container in its own private cgroup namespace
 +                                       '':        Use the cgroup namespace as configured by the
 +                                                  default-cgroupns-mode option on the daemon (default)
       --cidfile string                 Write the container ID to the file       --cidfile string                 Write the container ID to the file
       --cpu-period int                 Limit CPU CFS (Completely Fair Scheduler) period       --cpu-period int                 Limit CPU CFS (Completely Fair Scheduler) period
Ligne 918: Ligne 1057:
       --dns-option list                Set DNS options       --dns-option list                Set DNS options
       --dns-search list                Set custom DNS search domains       --dns-search list                Set custom DNS search domains
 +      --domainname string              Container NIS domain name
       --entrypoint string              Overwrite the default ENTRYPOINT of the image       --entrypoint string              Overwrite the default ENTRYPOINT of the image
   -e, --env list                       Set environment variables   -e, --env list                       Set environment variables
       --env-file list                  Read in a file of environment variables       --env-file list                  Read in a file of environment variables
       --expose list                    Expose a port or a range of ports       --expose list                    Expose a port or a range of ports
 +      --gpus gpu-request               GPU devices to add to the container ('all' to pass all GPUs)
       --group-add list                 Add additional groups to join       --group-add list                 Add additional groups to join
       --health-cmd string              Command to run to check health       --health-cmd string              Command to run to check health
Ligne 950: Ligne 1091:
       --mount mount                    Attach a filesystem mount to the container       --mount mount                    Attach a filesystem mount to the container
       --name string                    Assign a name to the container       --name string                    Assign a name to the container
-      --network string                 Connect a container to a network (default "default")+      --network network                Connect a container to a network
       --network-alias list             Add network-scoped alias for the container       --network-alias list             Add network-scoped alias for the container
       --no-healthcheck                 Disable any container-specified HEALTHCHECK       --no-healthcheck                 Disable any container-specified HEALTHCHECK
Ligne 957: Ligne 1098:
       --pid string                     PID namespace to use       --pid string                     PID namespace to use
       --pids-limit int                 Tune container pids limit (set -1 for unlimited)       --pids-limit int                 Tune container pids limit (set -1 for unlimited)
 +      --platform string                Set platform if server is multi-platform capable
       --privileged                     Give extended privileges to this container       --privileged                     Give extended privileges to this container
   -p, --publish list                   Publish a container's port(s) to the host   -p, --publish list                   Publish a container's port(s) to the host
   -P, --publish-all                    Publish all exposed ports to random ports   -P, --publish-all                    Publish all exposed ports to random ports
 +      --pull string                    Pull image before running ("always", "missing", "never") (default "missing")
 +  -q, --quiet                          Suppress the pull output
       --read-only                      Mount the container's root filesystem as read only       --read-only                      Mount the container's root filesystem as read only
       --restart string                 Restart policy to apply when a container exits (default "no")       --restart string                 Restart policy to apply when a container exits (default "no")
Ligne 967: Ligne 1111:
       --shm-size bytes                 Size of /dev/shm       --shm-size bytes                 Size of /dev/shm
       --sig-proxy                      Proxy received signals to the process (default true)       --sig-proxy                      Proxy received signals to the process (default true)
-      --stop-signal string             Signal to stop container (default "SIGTERM")+      --stop-signal string             Signal to stop the container
       --stop-timeout int               Timeout (in seconds) to stop a container       --stop-timeout int               Timeout (in seconds) to stop a container
       --storage-opt list               Storage driver options for the container       --storage-opt list               Storage driver options for the container
Ligne 988: Ligne 1132:
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS                       PORTS               NAMES +CONTAINER ID   IMAGE         COMMAND    CREATED         STATUS                     PORTS     NAMES 
-3a3f9bda6cbd        ubuntu              "bash"              About a minute ago   Exited (1273 seconds ago                       wizardly_buck +83b0d8979a33   ubuntu        "bash"     4 minutes ago   Exited (02 minutes ago             upbeat_diffie 
-26ef17bd115d        hello-world         "/hello"            8 minutes ago        Exited (0) 8 minutes ago                         angry_chaplygin+5d17db3bbb20   hello-world   "/hello"   16 hours ago    Exited (0) 16 hours ago              charming_hoover
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que chaque conteneur peut être référencé par son **CONTAINER ID** ou par son **NAME**. **Important** - Notez que chaque conteneur peut être référencé par son **CONTAINER ID** ou par son **NAME**.
 </WRAP> </WRAP>
Ligne 1001: Ligne 1145:
  
 <code> <code>
-root@debian9:~# docker images +root@debian11:~# docker images 
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE +REPOSITORY    TAG       IMAGE ID       CREATED        SIZE 
-ubuntu              latest              94e814e2efa8        4 weeks ago         88.9MB +ubuntu        latest    01f29b872827   weeks ago    77.8MB 
-hello-world         latest              fce289e99eb9        3 months ago        4.84kB+hello-world   latest    9c7a54a9a43c   3 months ago   13.3kB
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que chaque image est référencée par son IMAGE ID. **Important** - Notez que chaque image est référencée par son IMAGE ID.
 </WRAP> </WRAP>
Ligne 1016: Ligne 1160:
  
 <code> <code>
-root@debian9:~# docker search --filter=stars=5 centos +root@debian11:~# docker search --filter=stars=5 centos 
-NAME                              DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED +NAME                        DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED 
-centos                            The official build of CentOS.                   5288                [OK]                 +centos                      DEPRECATED; The official build of CentOS.       7627      [OK]        
-ansible/centos7-ansible           Ansible on Centos7                              121                                     [OK] +kasmweb/centos-7-desktop    CentOS 7 desktop for Kasm Workspaces            40                    
-jdeathe/centos-ssh                CentOS-6 6.10 x86_64 / CentOS-7.5.1804 x86…   107                                     [OK] +couchbase/centos7-systemd   centos7-systemd images with additional debug…   8                    [OK] 
-consol/centos-xfce-vnc            Centos container with "headless" VNC session…   84                                      [OK] +dokken/centos-7             CentOS 7 image for kitchen-dokken                                   
-imagine10255/centos6-lnmp-php56   centos6-lnmp-php56                              53                                      [OK] +eclipse/centos_jdk8         CentOS, JDK8, Maven 3, git, curl, nmap, mc, …                      [OK] 
-centos/mysql-57-centos7           MySQL 5.SQL database server                   50                                       +dokken/centos-stream-9                                                                                              
-tutum/centos                      Simple CentOS docker image with SSH access      44                                       +
-gluster/gluster-centos            Official GlusterFS Image [ CentOS-+  Glust…   40                                      [OK] +
-openshift/base-centos7            A Centos7 derived base image for Source-To-I…   40                                       +
-centos/postgresql-96-centos7      PostgreSQL is an advanced Object-Relational …   37                                       +
-centos/python-35-centos7          Platform for building and running Python 3.5…   34                                       +
-kinogmt/centos-ssh                CentOS with SSH                                 26                                      [OK] +
-centos/httpd-24-centos7           Platform for running Apache httpd 2.4 or bui…   22                                       +
-centos/php-56-centos7             Platform for building and running PHP 5.ap…   20                                       +
-openshift/jenkins-2-centos7       A Centos7 based Jenkins v2.x image for use w…   20                                       +
-pivotaldata/centos-gpdb-dev       CentOS image for GPDB development. Tag names…   10                                       +
-openshift/wildfly-101-centos7     A Centos7 based WildFly v10.1 image for use …                        +
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez que chaque image est référencée par la colonne NAME. Le NAME est sous le format **repository/mainteneur/nom** sauf dans le cas où il s'agit de l'image "officielle" de l'éditeur au quel cas le format est simplement **repository/nom**. La notion de STARS ( étoiles ) vient de Docker Hub et est une indication de la satisfaction de la communauté. **Important** - Notez que chaque image est référencée par la colonne NAME. Le NAME est sous le format **repository/mainteneur/nom** sauf dans le cas où il s'agit de l'image "officielle" de l'éditeur au quel cas le format est simplement **repository/nom**. La notion de STARS ( étoiles ) vient de Docker Hub et est une indication de la satisfaction de la communauté.
 </WRAP> </WRAP>
Ligne 1046: Ligne 1179:
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                       PORTS               NAMES +CONTAINER ID   IMAGE         COMMAND    CREATED         STATUS                     PORTS     NAMES 
-3a3f9bda6cbd        ubuntu              "bash"              minutes ago       Exited (127minutes ago                       wizardly_buck +83b0d8979a33   ubuntu        "bash"     5 minutes ago   Exited (0minutes ago             upbeat_diffie 
-26ef17bd115d        hello-world         "/hello"            13 minutes ago      Exited (0) 13 minutes ago                        angry_chaplygin +5d17db3bbb20   hello-world   "/hello"   16 hours ago    Exited (0) 16 hours ago              charming_hoover 
-root@debian9:~# docker rm wizardly_buck + 
-wizardly_buck +root@debian11:~# docker rm upbeat_diffie 
-root@debian9:~# docker ps -a +upbeat_diffie 
-CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES + 
-26ef17bd115d        hello-world         "/hello"            14 minutes ago      Exited (0) 14 minutes ago                       angry_chaplygin +root@debian11:~# docker ps -a 
-root@debian9:~# docker images +CONTAINER ID   IMAGE         COMMAND    CREATED        STATUS                    PORTS     NAMES 
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE +5d17db3bbb20   hello-world   "/hello"   16 hours ago   Exited (0) 16 hours ago             charming_hoover 
-ubuntu              latest              94e814e2efa8        4 weeks ago         88.9MB + 
-hello-world         latest              fce289e99eb9        3 months ago        4.84kB+root@debian11:~# docker images 
 +REPOSITORY    TAG       IMAGE ID       CREATED        SIZE 
 +ubuntu        latest    01f29b872827   weeks ago    77.8MB 
 +hello-world   latest    9c7a54a9a43c   3 months ago   13.3kB
 </code> </code>
  
-<WRAP center round important> +<WRAP center round important 50%
-**Important** - Notez que dans le cas de l'utilisation du CONTAINER ID, il n'est pas necéssaire d'utiliser la totalité de l'ID. Par exemple, dans le cas ci-dessus, le CONTAINER ID du conteneur **wizardly_buck** était **3a3f9bda6cbd**. La commande de suppression aurait pu utilisé **3a3f9bda6cbd**, **3a3f9b** ou même **3a3**.+**Important** - Notez que dans le cas de l'utilisation du CONTAINER ID, il n'est pas necéssaire d'utiliser la totalité de l'ID. Par exemple, dans le cas ci-dessus, le CONTAINER ID du conteneur **upbeat_diffie** était **83b0d8979a33**. La commande de suppression aurait pu utilisé **83b0d8979a33**, **83b0d8** ou même **83b**.
 </WRAP> </WRAP>
  
Ligne 1070: Ligne 1206:
  
 <code> <code>
-root@debian9:~# docker run -it ubuntu +root@debian11:~# docker run -it ubuntu 
-root@54b0dae2f3a9:/# ls + 
-bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@4377355f88c2:/# ls  
-root@54b0dae2f3a9:/# rm -rf /home +bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
-root@54b0dae2f3a9:/# ls + 
-bin  boot  dev  etc  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@4377355f88c2:/# rm -rf /home 
-root@54b0dae2f3a9:/# exit+ 
 +root@4377355f88c2:/# ls 
 +bin  boot  dev  etc  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@4377355f88c2:/# exit
 exit exit
-root@debian9:~# +root@debian11:~#
 </code> </code>
  
-<WRAP center round important> +<WRAP center round important 50%
-**Important** - Notez ici la suppression du répertoire **home** dans le conteneur **54b0dae2f3a9**.+**Important** - Notez ici la suppression du répertoire **home** dans le conteneur **4377355f88c2**.
 </WRAP> </WRAP>
  
Ligne 1088: Ligne 1228:
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS                          PORTS               NAMES +CONTAINER ID   IMAGE         COMMAND       CREATED              STATUS                          PORTS     NAMES 
-54b0dae2f3a9        ubuntu              "/bin/bash"         About a minute ago   Exited (0) About a minute ago                       tender_mendeleev +4377355f88c2   ubuntu        "/bin/bash"   About a minute ago   Exited (0) About a minute ago             romantic_northcutt 
-26ef17bd115d        hello-world         "/hello"            18 minutes ago       Exited (0) 18 minutes ago                           angry_chaplygin +5d17db3bbb20   hello-world   "/hello"      16 hours ago         Exited (0) 16 hours ago                   charming_hoover 
-root@debian9:~# docker diff tender_mendeleev+ 
 +root@debian11:~# docker diff romantic_northcutt
 C /root C /root
 A /root/.bash_history A /root/.bash_history
Ligne 1098: Ligne 1239:
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - La sortie de la commande **docker diff** comporte des lettres dont les significations sont les suivantes : C = Create, D = Delete, A = Add. **Important** - La sortie de la commande **docker diff** comporte des lettres dont les significations sont les suivantes : C = Create, D = Delete, A = Add.
 </WRAP> </WRAP>
Ligne 1105: Ligne 1246:
  
 <code> <code>
-root@debian9:~# docker run -it ubuntu +root@debian11:~# docker run -it ubuntu 
-root@92f0d4bb7967:/# ls + 
-bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@e4caf92a5ceb:/# ls 
-root@92f0d4bb7967:/# exit+bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@e4caf92a5ceb:/# exit
 exit exit
-root@debian9:~# + 
 +root@debian11:~# 
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Dans ce nouveau conteneur, le répertoire **/home** est présent compte tenu du fait qu'il a été généré à partir de l'image d'origine, inchangée depuis sa compilation. **Important** - Dans ce nouveau conteneur, le répertoire **/home** est présent compte tenu du fait qu'il a été généré à partir de l'image d'origine, inchangée depuis sa compilation.
 </WRAP> </WRAP>
  
-Créez maintenant l'image **ubuntu_1** à partir du conteneur **competent_pasteur** en utilisant la commande **docker commit** :+Créez maintenant l'image **ubuntu_1** à partir du premier conteneur ubuntu (dans le cas ci-dessous - **romantic_northcutt**en utilisant la commande **docker commit** :
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES +CONTAINER ID   IMAGE         COMMAND       CREATED          STATUS                      PORTS     NAMES 
-92f0d4bb7967        ubuntu              "/bin/bash"         39 seconds ago      Exited (0) 32 seconds ago                       musing_benz +e4caf92a5ceb   ubuntu        "/bin/bash"   44 seconds ago   Exited (0) 32 seconds ago             affectionate_ishizaka 
-54b0dae2f3a9        ubuntu              "/bin/bash"         3 minutes ago       Exited (0) 3 minutes ago                        tender_mendeleev +4377355f88c2   ubuntu        "/bin/bash"   6 hours ago      Exited (0) 6 hours ago                romantic_northcutt 
-26ef17bd115d        hello-world         "/hello"            19 minutes ago      Exited (0) 19 minutes ago                       angry_chaplygin +5d17db3bbb20   hello-world   "/hello"      22 hours ago     Exited (0) 22 hours ago               charming_hoover 
-root@debian9:~# docker commit tender_mendeleev ubuntu_1 + 
-sha256:2ba8e0ec5e38332c8ab15c4b33fd140a9c74d72231d05a6965c40a39fbb44584 +root@debian11:~# docker commit romantic_northcutt ubuntu_1 
-root@debian9:~# docker images +sha256:50d66f88b992b65d0a38c4b662fbdcc906477916240a90d214b35a42b939ea5f 
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE + 
-ubuntu_1            latest              2ba8e0ec5e38        15 seconds ago      88.9MB +root@debian11:~# docker images 
-ubuntu              latest              94e814e2efa8        4 weeks ago         88.9MB +REPOSITORY    TAG       IMAGE ID       CREATED          SIZE 
-hello-world         latest              fce289e99eb9        3 months ago        4.84kB+ubuntu_1      latest    50d66f88b992   13 seconds ago   77.8MB 
 +ubuntu        latest    01f29b872827   weeks ago      77.8MB 
 +hello-world   latest    9c7a54a9a43c   3 months ago     13.3kB 
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1139: Ligne 1287:
  
 <code> <code>
-root@debian9:~# docker run -it ubuntu_1 +root@debian11:~# docker run -it ubuntu_1 
-root@904215fb79b4:/# ls + 
-bin  boot  dev  etc  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@86e777ebaf2b:/# ls 
-root@904215fb79b4:/# exit+bin  boot  dev  etc  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@86e777ebaf2b:/# exit
 exit exit
-root@debian9:~# + 
 +root@debian11:~# 
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez l'absence du répertoire **home** dans le conteneur **904215fb79b4**. **Important** - Notez l'absence du répertoire **home** dans le conteneur **904215fb79b4**.
 </WRAP> </WRAP>
Ligne 1154: Ligne 1305:
  
 <code> <code>
-root@debian9:~# docker rmi ubuntu_1 +root@debian11:~# docker rmi ubuntu_1 
-Error response from daemon: conflict: unable to remove repository reference "ubuntu_1" (must force) - container 904215fb79b4 is using its referenced image 2ba8e0ec5e38 +Error response from daemon: conflict: unable to remove repository reference "ubuntu_1" (must force) - container 86e777ebaf2b is using its referenced image 50d66f88b992 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS                      PORTS               NAMES +root@debian11:~# docker ps -a 
-904215fb79b4        ubuntu_1            "/bin/bash"         About a minute ago   Exited (0) 49 seconds ago                       priceless_swirles +CONTAINER ID   IMAGE         COMMAND       CREATED              STATUS                          PORTS     NAMES 
-92f0d4bb7967        ubuntu              "/bin/bash"         2 minutes ago        Exited (0) minutes ago                        musing_benz +86e777ebaf2b   ubuntu_1      "/bin/bash"   About a minute ago   Exited (0) About a minute ago             focused_colden 
-54b0dae2f3a9        ubuntu              "/bin/bash"         minutes ago        Exited (0) 5 minutes ago                        tender_mendeleev +e4caf92a5ceb   ubuntu        "/bin/bash"   7 minutes ago        Exited (0) minutes ago                  affectionate_ishizaka 
-26ef17bd115d        hello-world         "/hello"            22 minutes ago       Exited (0) 22 minutes ago                       angry_chaplygin+4377355f88c2   ubuntu        "/bin/bash"   hours ago          Exited (0) 6 hours ago                    romantic_northcutt 
 +5d17db3bbb20   hello-world   "/hello"      22 hours ago         Exited (0) 22 hours ago                   charming_hoover
 </code> </code>
  
-<WRAP center round important> +<WRAP center round important 50%
-**Important** - Notez qu'il n'est pas possible de supprimer l'image **ubuntu_1** tant que le conteneur **priceless_swirles** soit actif.+**Important** - Notez qu'il n'est pas possible de supprimer l'image **ubuntu_1** tant que le conteneur **86e777ebaf2b** soit actif.
 </WRAP> </WRAP>
  
-Supprimez donc le conteneur **priceless_swirles** ainsi que l'image **ubuntu_1** :+Supprimez donc le conteneur identifié par le message d'erreur (dans le cas ci-dessus - **focused_colden**ainsi que l'image **ubuntu_1** :
  
 <code> <code>
-root@debian9:~# docker rm priceless_swirles +root@debian11:~# docker rm focused_colden 
-priceless_swirles +focused_colden 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES +root@debian11:~# docker ps -a 
-92f0d4bb7967        ubuntu              "/bin/bash"         4 minutes ago       Exited (0) minutes ago                        musing_benz +CONTAINER ID   IMAGE         COMMAND       CREATED          STATUS                     PORTS     NAMES 
-54b0dae2f3a9        ubuntu              "/bin/bash"         7 minutes ago       Exited (0) 6 minutes ago                        tender_mendeleev +e4caf92a5ceb   ubuntu        "/bin/bash"   10 minutes ago   Exited (0) minutes ago             affectionate_ishizaka 
-26ef17bd115d        hello-world         "/hello"            23 minutes ago      Exited (0) 23 minutes ago                       angry_chaplygin +4377355f88c2   ubuntu        "/bin/bash"   6 hours ago      Exited (0) 6 hours ago               romantic_northcutt 
-root@debian9:~# docker rmi ubuntu_1+5d17db3bbb20   hello-world   "/hello"      22 hours ago     Exited (0) 22 hours ago              charming_hoover 
 + 
 +root@debian11:~# docker rmi ubuntu_1
 Untagged: ubuntu_1:latest Untagged: ubuntu_1:latest
-Deleted: sha256:2ba8e0ec5e38332c8ab15c4b33fd140a9c74d72231d05a6965c40a39fbb44584 +Deleted: sha256:50d66f88b992b65d0a38c4b662fbdcc906477916240a90d214b35a42b939ea5f 
-Deleted: sha256:308e9761a8fc84661e46eff564b0bbca12b458e71bdf77bf4abbb59b21efdbbe +Deleted: sha256:c5fdbe1dd17356fd868456c44949e0ca50c78a610a8917d7ad6ab372aeebce20 
-root@debian9:~# docker images + 
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE +root@debian11:~# docker images 
-ubuntu              latest              94e814e2efa8        weeks ago         88.9MB +REPOSITORY    TAG       IMAGE ID       CREATED        SIZE 
-hello-world         latest              fce289e99eb9        3 months ago        1.84kB+ubuntu        latest    01f29b872827   weeks ago    77.8MB 
 +hello-world   latest    9c7a54a9a43c   3 months ago   13.3kB
 </code> </code>
  
Ligne 1191: Ligne 1346:
  
 <code> <code>
-root@debian9:~# docker ps -aq +root@debian11:~# docker ps -aq 
-92f0d4bb7967 +e4caf92a5ceb 
-54b0dae2f3a9 +4377355f88c2 
-26ef17bd115d+5d17db3bbb20
 </code> </code>
  
Ligne 1200: Ligne 1355:
  
 <code> <code>
-root@debian9:~# docker rm `docker ps -aq` +root@debian11:~# docker rm `docker ps -aq` 
-92f0d4bb7967 +e4caf92a5ceb 
-54b0dae2f3a9 +4377355f88c2 
-26ef17bd115d +5d17db3bbb20 
-root@debian9:~# docker ps -aq + 
-root@debian9:~# +root@debian11:~# docker ps -aq 
 + 
 +root@debian11:~# 
 </code> </code>
  
Ligne 1211: Ligne 1368:
  
 <code> <code>
-root@debian9:~# docker run -it --rm ubuntu +root@debian11:~# docker run -it --rm ubuntu 
-root@d123b0112fc2:/# ls + 
-bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@3b3d4d7be82b:/# ls 
-root@d123b0112fc2:/# exit+bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@3b3d4d7be82b:/# exit
 exit exit
-root@debian9:~# docker ps -aq + 
-root@debian9:~# +root@debian11:~# docker ps -aq 
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1225: Ligne 1386:
  
 <code> <code>
-root@debian9:~# docker run -it --name=i2tch ubuntu +root@debian11:~# docker run -it --name=ittraining ubuntu 
-root@04b5ab87539a:/# ls + 
-bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var +root@d838ea83033e:/# ls 
-root@04b5ab87539a:/# exit+bin  boot  dev  etc  home  lib  lib32  lib64  libx32  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +root@d838ea83033e:/# exit
 exit exit
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES +root@debian11:~# docker ps -a 
-04b5ab87539a        ubuntu              "/bin/bash"         11 seconds ago      Exited (0) 4 seconds ago                       i2tch+CONTAINER ID   IMAGE     COMMAND       CREATED          STATUS                     PORTS     NAMES 
 +d838ea83033e   ubuntu    "/bin/bash"   12 seconds ago   Exited (0) 4 seconds ago             ittraining
 </code> </code>
  
Ligne 1238: Ligne 1402:
  
 <code> <code>
-root@debian9:~# docker inspect i2tch+root@debian11:~# docker inspect ittraining
 [ [
     {     {
-        "Id": "04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5", +        "Id": "d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3", 
-        "Created": "2019-04-09T14:22:45.623162229Z",+        "Created": "2023-08-19T11:47:56.464134219Z",
         "Path": "/bin/bash",         "Path": "/bin/bash",
         "Args": [],         "Args": [],
Ligne 1255: Ligne 1419:
             "ExitCode": 0,             "ExitCode": 0,
             "Error": "",             "Error": "",
-            "StartedAt": "2019-04-09T14:22:46.301514689Z", +            "StartedAt": "2023-08-19T11:47:57.979606971Z", 
-            "FinishedAt": "2019-04-09T14:22:51.91071787Z"+            "FinishedAt": "2023-08-19T11:48:04.066624168Z"
         },         },
-        "Image": "sha256:94e814e2efa8845d95b2112d54497fbad173e45121ce9255b93401392f538499", +        "Image": "sha256:01f29b872827fa6f9aed0ea0b2ede53aea4ad9d66c7920e81a8db6d1fd9ab7f9", 
-        "ResolvConfPath": "/var/lib/docker/containers/04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5/resolv.conf", +        "ResolvConfPath": "/var/lib/docker/containers/d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3/resolv.conf", 
-        "HostnamePath": "/var/lib/docker/containers/04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5/hostname", +        "HostnamePath": "/var/lib/docker/containers/d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3/hostname", 
-        "HostsPath": "/var/lib/docker/containers/04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5/hosts", +        "HostsPath": "/var/lib/docker/containers/d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3/hosts", 
-        "LogPath": "/var/lib/docker/containers/04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5/04b5ab87539aed114cbfc3ba15d10be61cd88b9cffc88c6de9bd26e203b363b5-json.log", +        "LogPath": "/var/lib/docker/containers/d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3/d838ea83033e6a5b324676ed6734e7ff9c69084dd453c52eedd367f31bcb83f3-json.log", 
-        "Name": "/i2tch",+        "Name": "/ittraining",
         "RestartCount": 0,         "RestartCount": 0,
         "Driver": "overlay2",         "Driver": "overlay2",
Ligne 1269: Ligne 1433:
         "MountLabel": "",         "MountLabel": "",
         "ProcessLabel": "",         "ProcessLabel": "",
-        "AppArmorProfile": "",+        "AppArmorProfile": "docker-default",
         "ExecIDs": null,         "ExecIDs": null,
         "HostConfig": {         "HostConfig": {
Ligne 1287: Ligne 1451:
             "VolumeDriver": "",             "VolumeDriver": "",
             "VolumesFrom": null,             "VolumesFrom": null,
 +            "ConsoleSize": [
 +                59,
 +                210
 +            ],
             "CapAdd": null,             "CapAdd": null,
             "CapDrop": null,             "CapDrop": null,
 +            "CgroupnsMode": "private",
             "Dns": [],             "Dns": [],
             "DnsOptions": [],             "DnsOptions": [],
Ligne 1294: Ligne 1463:
             "ExtraHosts": null,             "ExtraHosts": null,
             "GroupAdd": null,             "GroupAdd": null,
-            "IpcMode": "shareable",+            "IpcMode": "private",
             "Cgroup": "",             "Cgroup": "",
             "Links": null,             "Links": null,
Ligne 1307: Ligne 1476:
             "ShmSize": 67108864,             "ShmSize": 67108864,
             "Runtime": "runc",             "Runtime": "runc",
-            "ConsoleSize": [ 
-                0, 
-                0 
-            ], 
             "Isolation": "",             "Isolation": "",
             "CpuShares": 0,             "CpuShares": 0,
Ligne 1318: Ligne 1483:
             "BlkioWeight": 0,             "BlkioWeight": 0,
             "BlkioWeightDevice": [],             "BlkioWeightDevice": [],
-            "BlkioDeviceReadBps": null+            "BlkioDeviceReadBps": []
-            "BlkioDeviceWriteBps": null+            "BlkioDeviceWriteBps": []
-            "BlkioDeviceReadIOps": null+            "BlkioDeviceReadIOps": []
-            "BlkioDeviceWriteIOps": null,+            "BlkioDeviceWriteIOps": [],
             "CpuPeriod": 0,             "CpuPeriod": 0,
             "CpuQuota": 0,             "CpuQuota": 0,
Ligne 1330: Ligne 1495:
             "Devices": [],             "Devices": [],
             "DeviceCgroupRules": null,             "DeviceCgroupRules": null,
-            "DiskQuota": 0, +            "DeviceRequests": null,
-            "KernelMemory": 0,+
             "MemoryReservation": 0,             "MemoryReservation": 0,
             "MemorySwap": 0,             "MemorySwap": 0,
             "MemorySwappiness": null,             "MemorySwappiness": null,
-            "OomKillDisable": false+            "OomKillDisable": null
-            "PidsLimit": 0,+            "PidsLimit": null,
             "Ulimits": null,             "Ulimits": null,
             "CpuCount": 0,             "CpuCount": 0,
Ligne 1364: Ligne 1528:
         "GraphDriver": {         "GraphDriver": {
             "Data": {             "Data": {
-                "LowerDir": "/var/lib/docker/overlay2/1151d32cdd4dda25ee299fe2c2a8df9dcb1b7fc4c47701c2925c437fb7c3a616-init/diff:/var/lib/docker/overlay2/84bcc6977e49ee3d477255450d69b98195b721b017124194b376f6e6c0645233/diff:/var/lib/docker/overlay2/eee0d6bc849e0c074de73e17eaf11b296dd860a0fb17097f37f9af86d28dcf9b/diff:/var/lib/docker/overlay2/0deb30449649adfed4d1abb678939b2409c4804976ceea4cb75508d0fdf415b6/diff:/var/lib/docker/overlay2/a156bf77423d93e38ef326b3ca6a1d0248ce801733800dad2767070380d682b6/diff", +                "LowerDir": "/var/lib/docker/overlay2/b8f594ac72f3c9a57be0645a8d5686259ff8799d341626458808d999e35fbf8f-init/diff:/var/lib/docker/overlay2/f932b6b3764a556a570060fd607da5e9082eb6d816e3568574a6104ebc80df5e/diff", 
-                "MergedDir": "/var/lib/docker/overlay2/1151d32cdd4dda25ee299fe2c2a8df9dcb1b7fc4c47701c2925c437fb7c3a616/merged", +                "MergedDir": "/var/lib/docker/overlay2/b8f594ac72f3c9a57be0645a8d5686259ff8799d341626458808d999e35fbf8f/merged", 
-                "UpperDir": "/var/lib/docker/overlay2/1151d32cdd4dda25ee299fe2c2a8df9dcb1b7fc4c47701c2925c437fb7c3a616/diff", +                "UpperDir": "/var/lib/docker/overlay2/b8f594ac72f3c9a57be0645a8d5686259ff8799d341626458808d999e35fbf8f/diff", 
-                "WorkDir": "/var/lib/docker/overlay2/1151d32cdd4dda25ee299fe2c2a8df9dcb1b7fc4c47701c2925c437fb7c3a616/work"+                "WorkDir": "/var/lib/docker/overlay2/b8f594ac72f3c9a57be0645a8d5686259ff8799d341626458808d999e35fbf8f/work"
             },             },
             "Name": "overlay2"             "Name": "overlay2"
Ligne 1373: Ligne 1537:
         "Mounts": [],         "Mounts": [],
         "Config": {         "Config": {
-            "Hostname": "04b5ab87539a",+            "Hostname": "d838ea83033e",
             "Domainname": "",             "Domainname": "",
             "User": "",             "User": "",
Ligne 1388: Ligne 1552:
                 "/bin/bash"                 "/bin/bash"
             ],             ],
-            "ArgsEscaped": true, 
             "Image": "ubuntu",             "Image": "ubuntu",
             "Volumes": null,             "Volumes": null,
Ligne 1394: Ligne 1557:
             "Entrypoint": null,             "Entrypoint": null,
             "OnBuild": null,             "OnBuild": null,
-            "Labels": {}+            "Labels": { 
 +                "org.opencontainers.image.ref.name": "ubuntu", 
 +                "org.opencontainers.image.version": "22.04" 
 +            }
         },         },
         "NetworkSettings": {         "NetworkSettings": {
             "Bridge": "",             "Bridge": "",
-            "SandboxID": "304fc54e6d23247d4faf08995b65646967670def542812d902d2ee33d178794d",+            "SandboxID": "8896374679af4eed6bc5825722ef4f1d802910fba2d12cd87c777fad1338ebac",
             "HairpinMode": false,             "HairpinMode": false,
             "LinkLocalIPv6Address": "",             "LinkLocalIPv6Address": "",
             "LinkLocalIPv6PrefixLen": 0,             "LinkLocalIPv6PrefixLen": 0,
             "Ports": {},             "Ports": {},
-            "SandboxKey": "/var/run/docker/netns/304fc54e6d23",+            "SandboxKey": "/var/run/docker/netns/8896374679af",
             "SecondaryIPAddresses": null,             "SecondaryIPAddresses": null,
             "SecondaryIPv6Addresses": null,             "SecondaryIPv6Addresses": null,
Ligne 1419: Ligne 1585:
                     "Links": null,                     "Links": null,
                     "Aliases": null,                     "Aliases": null,
-                    "NetworkID": "f2d947904cba4a871af3e50d6e1ec0a3a055849185bf7ba473b2e028880bd8a9",+                    "NetworkID": "33b1d61a638b6114462bd420314077791ed32b132a4536ad7725420a58e11d3f",
                     "EndpointID": "",                     "EndpointID": "",
                     "Gateway": "",                     "Gateway": "",
Ligne 1441: Ligne 1607:
  
 <code> <code>
-root@debian9:~# docker run --rm ubuntu env+root@debian11:~# docker run --rm ubuntu env
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-HOSTNAME=77bb110031aa+HOSTNAME=9b7b7547c023
 HOME=/root HOME=/root
-root@debian9:~# + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1453: Ligne 1620:
  
 <code> <code>
-root@debian9:~# vi env.list +root@debian11:~# vi env.list 
-root@debian9:~# cat env.list+ 
 +root@debian11:~# cat env.list
 EDITOR=vim EDITOR=vim
 HOSTNAME=ubuntudocker HOSTNAME=ubuntudocker
Ligne 1460: Ligne 1628:
  
 <code> <code>
-root@debian9:~# docker run --rm --env-file=env.list ubuntu env+root@debian11:~# docker run --rm --env-file=env.list ubuntu env
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 HOSTNAME=ubuntudocker HOSTNAME=ubuntudocker
 EDITOR=vim EDITOR=vim
 HOME=/root HOME=/root
-root@debian9:~# + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1473: Ligne 1642:
  
 <code> <code>
-root@debian9:~# docker run -it --rm -h ubuntudocker ubuntu+root@debian11:~# docker run -it --rm -h ubuntudocker ubuntu 
 root@ubuntudocker:/# hostname root@ubuntudocker:/# hostname
 ubuntudocker ubuntudocker
 +
 root@ubuntudocker:/# exit root@ubuntudocker:/# exit
 exit exit
-root@debian9:~#  
 </code> </code>
  
Ligne 1486: Ligne 1656:
  
 <code> <code>
-root@debian9:~# docker run -it -p 81:80 nginx+root@debian11:~# docker run -it -p 81:80 nginx
 Unable to find image 'nginx:latest' locally Unable to find image 'nginx:latest' locally
 latest: Pulling from library/nginx latest: Pulling from library/nginx
-27833a3ba0a5: Pull complete  +52d2b7f179e3: Pull complete  
-e83729dd399a: Pull complete  +fd9f026c6310: Pull complete  
-ebc6a67df66d: Pull complete  +055fa98b4363: Pull complete  
-Digest: sha256:c8a861b8a1eeef6d48955a6c6d5dff8e2580f13ff4d0f549e082e7c82a8617a2+96576293dd29: Pull complete  
 +a7c4092be904: Pull complete  
 +e3b6889c8954: Pull complete  
 +da761d9a302b: Pull complete  
 +Digest: sha256:104c7c5c54f2685f0f46f3be607ce60da7085da3eaa5ad22d3d9f01594295e9c
 Status: Downloaded newer image for nginx:latest Status: Downloaded newer image for nginx:latest
-^Croot@debian9:~# + 
 +^
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1500: Ligne 1677:
  
 <code> <code>
-^Croot@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                     PORTS     NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   32 seconds ago      Exited (0) 21 seconds ago                       stoic_roentgen +37cb0af1e97f   nginx     "/docker-entrypoint.…"   46 seconds ago   Created                              intelligent_fermi 
-04b5ab87539a        ubuntu              "/bin/bash"              5 minutes ago       Exited (0) 5 minutes ago                        i2tch+d838ea83033e   ubuntu    "/bin/bash"              5 minutes ago    Exited (0) 5 minutes ago             ittraining
 </code> </code>
  
Ligne 1511: Ligne 1688:
  
 <code> <code>
-root@debian9:~# docker run -d -p 81:80 nginx +root@debian11:~# docker run -d -p 81:80 nginx 
-aabb064d4b0ade1f19216b6174631fa32a2053f6aa9d59bd724ea90ce534b004 +5c2fe852965f700fff2d11baff034557c4956a7cd5eb54c51967d362415a76b4 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS                          PORTS                NAMES +root@debian11:~# docker ps -a 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   12 seconds ago       Up 11 seconds                   0.0.0.0:81->80/tcp   eager_lewin +CONTAINER ID   IMAGE     COMMAND                  CREATED              STATUS                     PORTS                               NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   About a minute ago   Exited (0) About a minute ago                        stoic_roentgen +5c2fe852965f   nginx     "/docker-entrypoint.…"   seconds ago        Up seconds               0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
-04b5ab87539a        ubuntu              "/bin/bash"              minutes ago        Exited (0) minutes ago                             i2tch+37cb0af1e97f   nginx     "/docker-entrypoint.…"   About a minute ago   Created                                                        intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              minutes ago        Exited (0) minutes ago                                       ittraining
 </code> </code>
  
Ligne 1525: Ligne 1703:
  
 <code> <code>
-root@debian9:~# apt-get install lynx +root@debian11:~# apt-get install lynx 
-Lecture des listes de paquets... Fait +Reading package lists... Done 
-Construction de l'arbre des dépendances        +Building dependency tree... Done 
-Lecture des informations d'état... Fait+Reading state information... Done 
 +The following packages were automatically installed and are no longer required: 
 +  libopengl0 linux-headers-5.10.0-15-amd64 linux-headers-5.10.0-15-common 
 +Use 'apt autoremove' to remove them.
 The following additional packages will be installed: The following additional packages will be installed:
   lynx-common   lynx-common
-Les NOUVEAUX paquets suivants seront installés :+The following NEW packages will be installed:
   lynx lynx-common   lynx lynx-common
-mis à jour, 2 nouvellement installés, 0 à enlever et 94 non mis à jour+upgraded, 2 newly installed, 0 to remove and 0 not upgraded
-Il est nécessaire de prendre 730 ko dans les archives. +Need to get 1,844 kB of archives. 
-Après cette opération, 5 590 ko d'espace disque supplémentaires seront utilisés+After this operation, 5,768 kB of additional disk space will be used
-Souhaitez-vous continuer ? [O/n] +Do you want to continue? [Y/n] y
-Réception de:1 http://ftp.fr.debian.org/debian stretch/main amd64 lynx-common all 2.8.9dev11-1 [1 098 kB] +
-Réception de:2 http://ftp.fr.debian.org/debian stretch/main amd64 lynx amd64 2.8.9dev11-1 [632 kB] +
-1 730 ko réceptionnés en 6s (283 ko/s)                                                                                                                                   +
-Sélection du paquet lynx-common précédemment désélectionné. +
-(Lecture de la base de données... 113082 fichiers et répertoires déjà installés.) +
-Préparation du dépaquetage de .../lynx-common_2.8.9dev11-1_all.deb ... +
-Dépaquetage de lynx-common (2.8.9dev11-1) ... +
-Sélection du paquet lynx précédemment désélectionné. +
-Préparation du dépaquetage de .../lynx_2.8.9dev11-1_amd64.deb ... +
-Dépaquetage de lynx (2.8.9dev11-1) ... +
-Traitement des actions différées (« triggers ») pour mime-support (3.60) ... +
-Traitement des actions différées (« triggers ») pour man-db (2.7.6.1-2) ... +
-Paramétrage de lynx-common (2.8.9dev11-1) ... +
-Paramétrage de lynx (2.8.9dev11-1) ... +
-update-alternatives: utilisation de « /usr/bin/lynx » pour fournir « /usr/bin/www-browser » (www-browser) en mode automatique+
 </code> </code>
  
Ligne 1557: Ligne 1723:
  
 <code> <code>
-root@debian9:~# lynx --dump http://localhost:81+root@debian11:~# lynx --dump http://localhost:81
                                Welcome to nginx!                                Welcome to nginx!
  
Ligne 1568: Ligne 1734:
    Thank you for using nginx.    Thank you for using nginx.
  
-Références+References
  
    1. http://nginx.org/    1. http://nginx.org/
    2. http://nginx.com/    2. http://nginx.com/
 +
 +root@debian11:~#
 </code> </code>
  
Ligne 1579: Ligne 1747:
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS                NAMES +CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                     PORTS                               NAMES 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   2 minutes ago       Up 2 minutes               0.0.0.0:81->80/tcp   eager_lewin +5c2fe852965f   nginx     "/docker-entrypoint.…"   2 minutes ago   Up 2 minutes               0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
-4f157e179134        nginx               "nginx -g 'daemon of…"   4 minutes ago       Exited (0) 3 minutes ago                        stoic_roentgen +37cb0af1e97f   nginx     "/docker-entrypoint.…"   3 minutes ago   Created                                                        intelligent_fermi 
-04b5ab87539a        ubuntu              "/bin/bash"              8 minutes ago       Exited (0) 8 minutes ago                        i2tch +d838ea83033e   ubuntu    "/bin/bash"              8 minutes ago   Exited (0) 8 minutes ago  
-root@debian9:~# docker stop aabb +                                      ittraining 
-aabb +root@debian11:~# docker stop 5c2f 
-root@debian9:~# docker ps -a +5c2f 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES + 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   minutes ago       Exited (0) seconds ago                       eager_lewin +root@debian11:~# docker ps -a 
-4f157e179134        nginx               "nginx -g 'daemon of…"   4 minutes ago       Exited (0) 4 minutes ago                       stoic_roentgen +CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                     PORTS     NAMES 
-04b5ab87539a        ubuntu              "/bin/bash"              8 minutes ago       Exited (0) 8 minutes ago                       i2tch+5c2fe852965f   nginx     "/docker-entrypoint.…"   minutes ago   Exited (0) seconds ago             priceless_yonath 
 +37cb0af1e97f   nginx     "/docker-entrypoint.…"   4 minutes ago   Created                              intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              8 minutes ago   Exited (0) 8 minutes ago             ittraining
 </code> </code>
  
Ligne 1596: Ligne 1766:
  
 <code> <code>
-root@debian9:~# docker start aabb +root@debian11:~# docker start 5c2f 
-aabb +5c2f 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS                NAMES +root@debian11:~# docker ps -a 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   3 minutes ago       Up seconds               0.0.0.0:81->80/tcp   eager_lewin +CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS                     PORTS                               NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   4 minutes ago       Exited (0) 4 minutes ago                        stoic_roentgen +5c2fe852965f   nginx     "/docker-entrypoint.…"   3 minutes ago   Up seconds               0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
-04b5ab87539a        ubuntu              "/bin/bash"              9 minutes ago       Exited (0) minutes ago                        i2tch+37cb0af1e97f   nginx     "/docker-entrypoint.…"   4 minutes ago   Created                                                        intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              9 minutes ago   Exited (0) minutes ago                                       ittraining
 </code> </code>
  
Ligne 1610: Ligne 1781:
  
 <code> <code>
-root@debian9:~# docker kill -s 9 aabb +root@debian11:~# docker kill -s 9 5c2f 
-aabb +5c2f 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                       PORTS               NAMES +root@debian11:~# docker ps -a 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (137) seconds ago                       eager_lewin +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                       PORTS     NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (0) 2 hours ago                           stoic_roentgen +5c2fe852965f   nginx     "/docker-entrypoint.…"   5 minutes ago    Exited (137) seconds ago             priceless_yonath 
-04b5ab87539a        ubuntu              "/bin/bash"              2 hours ago         Exited (0) 2 hours ago                           i2tch+37cb0af1e97f   nginx     "/docker-entrypoint.…"   6 minutes ago    Created                                intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              11 minutes ago   Exited (0) 11 minutes ago              ittraining
 </code> </code>
  
-Redémarrez un conteneur en cours :+Redémarrez le conteneur :
  
 <code> <code>
-root@debian9:~# docker start aabb +root@debian11:~# docker start 5c2f 
-aabb +5c2f 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                NAMES +root@debian11:~# docker ps -a 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   2 hours ago         Up 1 second              0.0.0.0:81->80/tcp   eager_lewin +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS                               NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (0) 2 hours ago                        stoic_roentgen +5c2fe852965f   nginx     "/docker-entrypoint.…"   6 minutes ago    Up 2 seconds                0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
-04b5ab87539a        ubuntu              "/bin/bash"              2 hours ago         Exited (0) 2 hours ago                        i2tch +37cb0af1e97f   nginx     "/docker-entrypoint.…"   7 minutes ago    Created                                                         intelligent_fermi 
-root@debian9:~# docker restart aabb +d838ea83033e   ubuntu    "/bin/bash"              11 minutes ago   Exited (0) 11 minutes ago                                       ittraining 
-aabb + 
-root@debian9:~# docker ps -a +root@debian11:~# docker restart 5c2f 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                NAMES +5c2f 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   2 hours ago         Up 2 seconds             0.0.0.0:81->80/tcp   eager_lewin + 
-4f157e179134        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (0) 2 hours ago                        stoic_roentgen +root@debian11:~# docker ps -a 
-04b5ab87539a        ubuntu              "/bin/bash"              2 hours ago         Exited (0) 2 hours ago                        i2tch+CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS                               NAMES 
 +5c2fe852965f   nginx     "/docker-entrypoint.…"   6 minutes ago    Up 2 seconds                0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
 +37cb0af1e97f   nginx     "/docker-entrypoint.…"   7 minutes ago    Created                                                         intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              12 minutes ago   Exited (0) 12 minutes ago                                       ittraining
 </code> </code>
  
Ligne 1643: Ligne 1818:
  
 <code> <code>
-root@debian9:~# docker rm aabb +root@debian11:~# docker rm 5c2f 
-Error response from daemon: You cannot remove a running container aabb064d4b0ade1f19216b6174631fa32a2053f6aa9d59bd724ea90ce534b004. Stop the container before attempting removal or force remove +Error response from daemon: You cannot remove a running container 5c2fe852965f700fff2d11baff034557c4956a7cd5eb54c51967d362415a76b4. Stop the container before attempting removal or force remove 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                NAMES +root@debian11:~# docker ps -a 
-aabb064d4b0a        nginx               "nginx -g 'daemon of…"   2 hours ago         Up About a minute        0.0.0.0:81->80/tcp   eager_lewin +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS                               NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (0) 2 hours ago                        stoic_roentgen +5c2fe852965f   nginx     "/docker-entrypoint.…"   7 minutes ago    Up 58 seconds               0.0.0.0:81->80/tcp, :::81->80/tcp   priceless_yonath 
-04b5ab87539a        ubuntu              "/bin/bash"              2 hours ago         Exited (0) 2 hours ago                        i2tch +37cb0af1e97f   nginx     "/docker-entrypoint.…"   8 minutes ago    Created                                                         intelligent_fermi 
-root@debian9:~# docker rm -f aabb +d838ea83033e   ubuntu    "/bin/bash"              13 minutes ago   Exited (0) 12 minutes ago                                       ittraining 
-aabb + 
-root@debian9:~# docker ps -a +root@debian11:~# docker rm -f 5c2f 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS               NAMES +5c2f 
-4f157e179134        nginx               "nginx -g 'daemon of…"   2 hours ago         Exited (0) 2 hours ago                       stoic_roentgen + 
-04b5ab87539a        ubuntu              "/bin/bash"              2 hours ago         Exited (0) 2 hours ago                       i2tch+root@debian11:~# docker ps -a 
 +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS     NAMES 
 +37cb0af1e97f   nginx     "/docker-entrypoint.…"   8 minutes ago    Created                               intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              13 minutes ago   Exited (0) 13 minutes ago             ittraining
 </code> </code>
  
Ligne 1663: Ligne 1841:
  
 <code> <code>
-root@debian9:~# mkdir /root/www +root@debian11:~# vi index.html 
-root@debian9:~# vi index.html + 
-root@debian9:~# cat index.html+root@debian11:~# cat index.html
 <html> <html>
 <body> <body>
Ligne 1671: Ligne 1849:
 </body> </body>
 </html> </html>
-root@debian9:~# mv index.html www/+ 
 +root@debian11:~# mv index.html www/ 
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1677: Ligne 1858:
  
 <code> <code>
-root@debian9:~# docker run -d -p 81:80 -v /root/www:/usr/share/nginx/html:ro nginx +root@debian11:~# docker run -d -p 81:80 -v /root/www:/usr/share/nginx/html:ro nginx 
-c080793965de8a6a60db212d7e4d96de84b55352c224c054dced75b409e39bf2 +5bec576b4b69b3dbd4cb58305a80d5ac94d42312b486e99dac94f82ba6541e3c 
-root@debian9:~# lynx --dump http://localhost:81+ 
 +root@debian11:~# lynx --dump http://localhost:81
                             Accueil du site nginx                             Accueil du site nginx
  
- +root@debian11:~#  
-root@debian9:~# +
 </code> </code>
  
-<WRAP center round important>+<WRAP center round important 50%>
 **Important** - Notez ici l'utilisation de **ro** - lecture seule. **Important** - Notez ici l'utilisation de **ro** - lecture seule.
 </WRAP> </WRAP>
Ligne 1695: Ligne 1876:
  
 <code> <code>
-root@debian9:~# docker pull centos+root@debian11:~# docker pull centos
 Using default tag: latest Using default tag: latest
 latest: Pulling from library/centos latest: Pulling from library/centos
-8ba884070f61: Pull complete  +a1d0c7532777: Pull complete  
-Digest: sha256:8d487d68857f5bc9595793279b33d082b03713341ddec91054382641d14db861+Digest: sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177
 Status: Downloaded newer image for centos:latest Status: Downloaded newer image for centos:latest
 +docker.io/library/centos:latest
 </code> </code>
  
Ligne 1706: Ligne 1888:
  
 <code> <code>
-root@debian9:~# docker run -it centos bash +root@debian11:~# docker run -it centos bash 
-[root@86252a3f00f4 /]# cat /etc/redhat-release + 
-CentOS Linux release 7.6.1810 (Core)  +[root@b45b7b136f06 /]# cat /etc/redhat-release 
-[root@86252a3f00f4 /]# rpm -qa | more +CentOS Linux release 8.4.2105 
-bind-license-9.9.4-73.el7_6.noarch + 
-bash-4.2.46-31.el7.x86_64 +[root@b45b7b136f06 /]# rpm -qa | more 
-glibc-common-2.17-260.el7_6.3.x86_64 +crypto-policies-20210209-1.gitbfb6bed.el8_3.noarch 
-nss-softokn-freebl-3.36.0-5.el7_5.x86_64 +python3-pip-wheel-9.0.3-19.el8.noarch 
-filesystem-3.2-25.el7.x86_64 +ncurses-base-6.1-7.20180224.el8.noarch 
-glibc-2.17-260.el7_6.3.x86_64 +dnf-data-4.4.2-11.el8.noarch 
-nspr-4.19.0-1.el7_5.x86_64 +dhcp-common-4.3.6-44.0.1.el8.noarch 
-popt-1.13-16.el7.x86_64 +centos-gpg-keys-8-2.el8.noarch 
-libcom_err-1.42.9-13.el7.x86_64 +centos-linux-repos-8-2.el8.noarch 
-libcap-2.22-9.el7.x86_64 +filesystem-3.8-3.el8.x86_64 
-libstdc++-4.8.5-36.el7.x86_64 +pcre2-10.32-2.el8.x86_64 
-info-5.1-5.el7.x86_64 +ncurses-libs-6.1-7.20180224.el8.x86_64 
-gawk-4.0.2-4.el7_3.1.x86_64 +glibc-common-2.28-151.el8.x86_64 
-libselinux-2.5-14.1.el7.x86_64 +bash-4.4.19-14.el8.x86_64 
-grep-2.20-3.el7.x86_64 +zlib-1.2.11-17.el8.x86_64 
-keyutils-libs-1.5.8-3.el7.x86_64 +bzip2-libs-1.0.6-26.el8.x86_64 
-libverto-0.2.5-4.el7.x86_64 +libgpg-error-1.31-1.el8.x86_64 
-p11-kit-trust-0.23.5-3.el7.x86_64 +elfutils-libelf-0.182-3.el8.x86_64 
-openssl-libs-1.0.2k-16.el7.x86_64 +libcom_err-1.45.6-1.el8.x86_64 
-krb5-libs-1.15.1-37.el7_6.x86_64 +libxml2-2.9.7-9.el8.x86_64 
-xz-libs-5.2.2-1.el7.x86_64 +expat-2.2.5-4.el8.x86_64 
-libdb-5.3.21-24.el7.x86_64 +libuuid-2.32.1-27.el8.x86_64 
-libgpg-error-1.12-3.el7.x86_64 +chkconfig-1.13-2.el8.x86_64 
-libgcrypt-1.5.3-14.el7.x86_64 +gmp-6.1.2-10.el8.x86_64 
-lua-5.1.4-15.el7.x86_64 +libattr-2.4.48-3.el8.x86_64 
-libuuid-2.23.2-59.el7.x86_64 +coreutils-single-8.30-8.el8.x86_64 
-libmount-2.23.2-59.el7.x86_64 +sed-4.5-2.el8.x86_64 
-shared-mime-info-1.8-4.el7.x86_64 +libcap-ng-0.7.9-5.el8.x86_64 
-gzip-1.5-10.el7.x86_64 +libsmartcols-2.32.1-27.el8.x86_64 
-findutils-4.5.11-6.el7.x86_64 +lz4-libs-1.8.3-2.el8.x86_64 
-diffutils-3.3-4.el7.x86_64 +file-libs-5.33-16.el8_3.1.x86_64 
-expat-2.1.0-10.el7_3.x86_64 +p11-kit-0.23.22-1.el8.x86_64 
-audit-libs-2.8.4-4.el7.x86_64 +cracklib-2.9.6-15.el8.x86_64 
-pam-1.1.8-22.el7.x86_64 +libunistring-0.9.9-3.el8.x86_64 
-nss-softokn-3.36.0-5.el7_5.x86_64 +libassuan-2.5.1-3.el8.x86_64 
-nss-3.36.0-7.1.el7_6.x86_64 +keyutils-libs-1.5.10-6.el8.x86_64 
-libassuan-2.1.0-3.el7.x86_64 +libnl3-3.5.0-1.el8.x86_64 
-nss-tools-3.36.0-7.1.el7_6.x86_64 +p11-kit-trust-0.23.22-1.el8.x86_64 
-gobject-introspection-1.56.1-1.el7.x86_64+pcre-8.42-4.el8.x86_64 
 +systemd-libs-239-45.el8.x86_64 
 +dbus-tools-1.12.8-12.el8.x86_64 
 +libusbx-1.0.23-4.el8.x86_64 
 +ca-certificates-2020.2.41-80.0.el8_2.noarch 
 +libdb-5.3.28-40.el8.x86_64 
 +iproute-5.9.0-4.el8.x86_64 
 +libdb-utils-5.3.28-40.el8.x86_64 
 +tpm2-tss-2.3.2-3.el8.x86_64 
 +xz-5.2.4-3.el8.x86_64 
 +ethtool-5.8-5.el8.x86_64 
 +libsemanage-2.9-6.el8.x86_64 
 +dbus-daemon-1.12.8-12.el8.x86_64 
 +libfdisk-2.32.1-27.el8.x86_64 
 +mpfr-3.1.6-1.el8.x86_64 
 +gnutls-3.6.14-7.el8_3.x86_64 
 +snappy-1.1.8-3.el8.x86_64 
 +libmetalink-0.1.3-7.el8.x86_64 
 +libksba-1.3.5-7.el8.x86_64 
 +ipcalc-0.2.4-4.el8.x86_64 
 +libseccomp-2.5.1-1.el8.x86_64 
 +gawk-4.2.1-2.el8.x86_64
 --More-- --More--
 +[q]
 +[root@b45b7b136f06 /]#
 </code> </code>
  
Ligne 1757: Ligne 1962:
  
 <code> <code>
-[root@86252a3f00f4 /]# exit+[root@b45b7b136f06 /]# exit
 exit exit
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS                       PORTS                NAMES +root@debian11:~# docker ps -a 
-86252a3f00f4        centos              "bash"                   About a minute ago   Exited (127seconds ago                        vibrant_mccarthy +CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS                               NAMES 
-c080793965de        nginx               "nginx -g 'daemon of…"   4 minutes ago        Up 4 minutes                 0.0.0.0:81->80/tcp   suspicious_sanderson +b45b7b136f06   centos    "bash"                   3 minutes ago    Exited (0seconds ago                                        quizzical_cray 
-4f157e179134        nginx               "nginx -g 'daemon of…"   3 hours ago          Exited (0) 3 hours ago                            stoic_roentgen +5bec576b4b69   nginx     "/docker-entrypoint.…"   4 minutes ago    Up 4 minutes                0.0.0.0:81->80/tcp, :::81->80/tcp   elegant_shockley 
-04b5ab87539a        ubuntu              "/bin/bash"              3 hours ago          Exited (0) 3 hours ago                            i2tch +37cb0af1e97f   nginx     "/docker-entrypoint.…"   27 minutes ago   Created                                                         intelligent_fermi 
-root@debian9:~# docker start 8625 +d838ea83033e   ubuntu    "/bin/bash"              32 minutes ago   Exited (0) 31 minutes ago                                       ittraining 
-8625 + 
-root@debian9:~# docker attach 8625 +root@debian11:~# docker start b45b 
-[root@86252a3f00f4 /]# ls +b45b 
-anaconda-post.log  bin  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var + 
-[root@86252a3f00f4 /]# +root@debian11:~# docker attach b45b 
 + 
 +[root@b45b7b136f06 /]# ls 
 +bin  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var 
 + 
 +[root@b45b7b136f06 /]#
 </code> </code>
  
Ligne 1778: Ligne 1988:
  
 <code> <code>
-[root@86252a3f00f4 /]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* +[root@b45b7b136f06 /]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* 
-[root@86252a3f00f4 /]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* + 
-[root@86252a3f00f4 /]# yum upgrade -y+[root@b45b7b136f06 /]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* 
 + 
 +[root@b45b7b136f06 /]# yum upgrade -y 
 +...
 </code> </code>
  
Ligne 1786: Ligne 1999:
  
 <code> <code>
-[root@86252a3f00f4 /]# vi /etc/yum.repos.d/mongodb-org-4.2.repo +[root@b45b7b136f06 /]# vi /etc/yum.repos.d/mongodb-org-4.2.repo 
-[root@86252a3f00f4 /]# cat /etc/yum.repos.d/mongodb-org-4.2.repo+ 
 +[root@b45b7b136f06 /]# cat /etc/yum.repos.d/mongodb-org-4.2.repo
 [mongodb-org-4.2] [mongodb-org-4.2]
 name=MongoDB Repository name=MongoDB Repository
Ligne 1793: Ligne 2007:
 gpgcheck=1 gpgcheck=1
 enabled=1 enabled=1
-gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc +gpgkey=https://www.mongodb.org/static/pgp/server-4.2.as[mongodb-org-4.2] 
-[root@86252a3f00f4 /]+name=MongoDB Repository 
 +baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/ 
 +gpgcheck=1 
 +enabled=1 
 +gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc 
 </code> </code>
  
Ligne 1800: Ligne 2018:
  
 <code> <code>
-[root@86252a3f00f4 /]# yum install -y mongodb-org+[root@b45b7b136f06 /]# yum install -y mongodb-org 
 +...
 </code> </code>
  
Ligne 1806: Ligne 2025:
  
 <code> <code>
-[root@86252a3f00f4 /]# mongod --config /etc/mongod.conf & +[root@b45b7b136f06 /]# mongod --config /etc/mongod.conf & 
-[1] 82 +[1] 440
-[root@86252a3f00f4 /]# about to fork child process, waiting until server is ready for connections. +
-forked process: 84 +
-child process started successfully, parent exiting+
  
 +[root@b45b7b136f06 /]# about to fork child process, waiting until server is ready for connections.
 +forked process: 442
 +[Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Appuyer sur la touche Entrée
 +[root@b45b7b136f06 /]# child process started successfully, parent exiting
 +[Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Appuyer sur la touche Entrée
 [1]+  Done                    mongod --config /etc/mongod.conf [1]+  Done                    mongod --config /etc/mongod.conf
-[root@86252a3f00f4 /]#   
 </code> </code>
  
Ligne 1819: Ligne 2039:
  
 <code> <code>
-[root@86252a3f00f4 /]# ps aux +[root@b45b7b136f06 /]# ps aux 
-USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND +USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 
-root         1  0.0  0. 11828  2996 pts/0    Ss   16:57   0:00 bash +root           1  0.0  0. 12156  3324 pts/0    Ss   12:20   0:00 bash 
-root        84  1. 2.2 294692 46716        Sl   17:16   0:00 mongod --config /etc/mongod.conf +root         442  0. 0.6 1525168 111704      Sl   13:53   0:00 mongod --config /etc/mongod.conf 
-root       103  0.0  0. 51748  3444 pts/0    R+   17:17   0:00 ps aux+root         475  0.0  0. 47604  3668 pts/0    R+   13:55   0:00 ps aux
 </code> </code>
  
Ligne 1829: Ligne 2049:
  
 <code> <code>
-[root@86252a3f00f4 /]# mongo +[root@b45b7b136f06 /]# mongo 
-MongoDB shell version: 4.2.2 +MongoDB shell version v4.2.24 
-connecting to: test+connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb 
 +Implicit session: session { "id" : UUID("b864990d-ab42-45cc-b9e3-0935f566a41a") } 
 +MongoDB server version: 4.2.24
 Welcome to the MongoDB shell. Welcome to the MongoDB shell.
 For interactive help, type "help". For interactive help, type "help".
 For more comprehensive documentation, see For more comprehensive documentation, see
- http://docs.mongodb.org+        https://docs.mongodb.com
-Questions? Try the support group +Questions? Try the MongoDB Developer Community Forums 
- http://groups.google.com/group/mongodb-user+        https://community.mongodb.com
 Server has startup warnings:  Server has startup warnings: 
-2019-04-09T17:16:26.951+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten]  
-2019-04-09T17:16:26.951+0000 I CONTROL  [initandlisten]  +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database. 
-+2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted. 
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. 
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten]  
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten]  
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten] **        We suggest setting it to 'never' 
 +2023-08-19T13:53:35.327+0000 I  CONTROL  [initandlisten]  
 +--- 
 +Enable MongoDB's free cloud-based monitoring service, which will then receive and display 
 +metrics about your deployment (disk utilization, CPU, operation statistics, etc). 
 + 
 +The monitoring data will be available on a MongoDB website with a unique URL accessible to you 
 +and anyone you share the URL with. MongoDB may use this information to make product 
 +improvements and to suggest MongoDB products and deployment options to you. 
 + 
 +To enable free monitoring, run the following command: db.enableFreeMonitoring() 
 +To permanently disable this reminder, run the following command: db.disableFreeMonitoring() 
 +--- 
 + 
 +>
 </code> </code>
  
Ligne 1849: Ligne 2090:
 > exit > exit
 bye bye
-[root@86252a3f00f4 /]# exit+[root@b45b7b136f06 /]# exit
 exit exit
-root@debian9:~# +root@debian11:~# 
 </code> </code>
  
Ligne 1859: Ligne 2100:
  
 <code> <code>
-root@debian9:~# docker ps -a +root@debian11:~# docker ps -a 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS                NAMES +CONTAINER ID   IMAGE     COMMAND                  CREATED       STATUS                      PORTS                               NAMES 
-86252a3f00f4        centos              "bash"                   23 minutes ago      Exited (0) 56 seconds ago                        vibrant_mccarthy +b45b7b136f06   centos    "bash"                   2 hours ago   Exited (0) 31 seconds ago                                       quizzical_cray 
-c080793965de        nginx               "nginx -g 'daemon of…"   26 minutes ago      Up 26 minutes               0.0.0.0:81->80/tcp   suspicious_sanderson +5bec576b4b69   nginx     "/docker-entrypoint.…"   2 hours ago   Up 2 hours                  0.0.0.0:81->80/tcp, :::81->80/tcp   elegant_shockley 
-4f157e179134        nginx               "nginx -g 'daemon of…"   hours ago         Exited (0) 3 hours ago                           stoic_roentgen +37cb0af1e97f   nginx     "/docker-entrypoint.…"   hours ago   Created                                                         intelligent_fermi 
-04b5ab87539a        ubuntu              "/bin/bash"              hours ago         Exited (0) hours ago                           i2tch +d838ea83033e   ubuntu    "/bin/bash"              hours ago   Exited (0) hours ago                                          ittraining 
-root@debian9:~# docker commit 8625 i2tch/mongodb + 
-sha256:67afc80e1424a6d99179911ee499f6bf264faf2bc3c7ff4ac4a01ff9c23050a9+root@debian11:~# docker commit b45b ittraining/mongodb 
 +sha256:0ebd6759e69e3c345087dea3c9743a9d0fad81ca750842f1ff0004cbffabd8ae 
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1872: Ligne 2116:
  
 <code> <code>
-root@debian9:~# docker rm 8625 +root@debian11:~# docker rm b45b 
-8625 +b45b 
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                NAMES +root@debian11:~# docker ps -a 
-c080793965de        nginx               "nginx -g 'daemon of…"   28 minutes ago      Up 28 minutes            0.0.0.0:81->80/tcp   suspicious_sanderson +CONTAINER ID   IMAGE     COMMAND                  CREATED       STATUS                   PORTS                               NAMES 
-4f157e179134        nginx               "nginx -g 'daemon of…"   hours ago         Exited (0) 3 hours ago                        stoic_roentgen +5bec576b4b69   nginx     "/docker-entrypoint.…"   2 hours ago   Up 2 hours               0.0.0.0:81->80/tcp, :::81->80/tcp   elegant_shockley 
-04b5ab87539a        ubuntu              "/bin/bash"              hours ago         Exited (0) hours ago                        i2tch+37cb0af1e97f   nginx     "/docker-entrypoint.…"   hours ago   Created                                                      intelligent_fermi 
 +d838ea83033e   ubuntu    "/bin/bash"              hours ago   Exited (0) hours ago                                       ittraining
 </code> </code>
  
Ligne 1884: Ligne 2129:
  
 <code> <code>
-root@debian9:~# docker run -it --name mongo i2tch/mongodb +root@debian11:~# docker run -it --name mongo ittraining/mongodb 
-[root@d20fb56a38b0 /]# ls /usr/bin/mongo* + 
-/usr/bin/mongo   /usr/bin/mongodump    /usr/bin/mongofiles   /usr/bin/mongooplog  /usr/bin/mongorestore  /usr/bin/mongostat +[root@0c597fe7b628 /]# ls  /usr/bin/mongo* 
-/usr/bin/mongod  /usr/bin/mongoexport  /usr/bin/mongoimport  /usr/bin/mongoperf   /usr/bin/mongos        /usr/bin/mongotop +/usr/bin/mongo  /usr/bin/mongod  /usr/bin/mongodump  /usr/bin/mongoexport  /usr/bin/mongofiles  /usr/bin/mongoimport  /usr/bin/mongorestore  /usr/bin/mongos  /usr/bin/mongostat  /usr/bin/mongotop 
-[root@d20fb56a38b0 /]# ps aux + 
-USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND +[root@0c597fe7b628 /]# ps aux 
-root         1  0. 0. 11828  2972 pts/0    Ss   17:22   0:00 bash +USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 
-root        15  0.0  0. 51748  3468 pts/0    R+   17:23   0:00 ps aux+root           1  0. 0. 15100  3704 pts/0    Ss   14:01   0:00 bash 
 +root          18  0.0  0. 47604  3696 pts/0    R+   14:01   0:00 ps aux
 </code> </code>
  
Ligne 1897: Ligne 2143:
  
 <code> <code>
-[root@d20fb56a38b0 /]# echo "/usr/bin/mongod --config /etc/mongod.conf &" >> /etc/bashrc +[root@0c597fe7b628 /]# echo "/usr/bin/mongod --config /etc/mongod.conf &" >> /etc/bashrc 
-[root@d20fb56a38b0 /]# tail /etc/bashrc + 
-                . "$i" >/dev/null +[root@0c597fe7b628 /]# tail /etc/bashrc
-            fi+
         fi         fi
     done     done
Ligne 1906: Ligne 2151:
     unset i     unset i
     unset -f pathmunge     unset -f pathmunge
 +  fi
 +
 fi fi
 # vim:ts=4:sw=4 # vim:ts=4:sw=4
 /usr/bin/mongod --config /etc/mongod.conf & /usr/bin/mongod --config /etc/mongod.conf &
 +
 +[root@0c597fe7b628 /]# 
 </code> </code>
  
Ligne 1914: Ligne 2163:
  
 <code> <code>
-[root@d20fb56a38b0 /]# exit+[root@0c597fe7b628 /]# exit
 exit exit
-root@debian9:~# docker ps -a + 
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS                NAMES +root@debian11:~# docker ps -a 
-d20fb56a38b0        i2tch/mongodb       "bash"                   2 minutes ago       Exited (0) seconds ago                        mongo +CONTAINER ID   IMAGE                COMMAND                  CREATED              STATUS                     PORTS                               NAMES 
-c080793965de        nginx               "nginx -g 'daemon of…"   32 minutes ago      Up 32 minutes              0.0.0.0:81->80/tcp   suspicious_sanderson +0c597fe7b628   ittraining/mongodb   "bash"                   About a minute ago   Exited (0) seconds ago                                       mongo 
-4f157e179134        nginx               "nginx -g 'daemon of…"   hours ago         Exited (0) 3 hours ago                          stoic_roentgen +5bec576b4b69   nginx                "/docker-entrypoint.…"   2 hours ago          Up 2 hours                 0.0.0.0:81->80/tcp, :::81->80/tcp   elegant_shockley 
-04b5ab87539a        ubuntu              "/bin/bash"              hours ago         Exited (0) hours ago                          i2tch+37cb0af1e97f   nginx                "/docker-entrypoint.…"   hours ago          Created                                                        intelligent_fermi 
 +d838ea83033e   ubuntu               "/bin/bash"              hours ago          Exited (0) hours ago                                         ittraining 
 + 
 +root@debian11:~#
 </code> </code>
  
Ligne 1927: Ligne 2179:
  
 <code> <code>
-root@debian9:~# docker commit d20f i2tch/mongodb +root@debian11:~# docker commit 0c59 ittraining/mongodb 
-sha256:620057baa411b78a0030e192fdfbde0bb0c5ceae7bdeb115892d9946e542ee07+sha256:3daa95515db6c3f1bd7e30a29c52d3bd5ea14207c05d9401bc2da91d54adbb3f
 </code> </code>
  
Ligne 1934: Ligne 2186:
  
 <code> <code>
-root@debian9:~# docker rm d20f +root@debian11:~# docker rm 0c59 
-d20f +0c59
-root@debian9:~# docker ps -a +
-CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                NAMES +
-c080793965de        nginx               "nginx -g 'daemon of…"   33 minutes ago      Up 33 minutes            0.0.0.0:81->80/tcp   suspicious_sanderson +
-4f157e179134        nginx               "nginx -g 'daemon of…"   3 hours ago         Exited (0) 3 hours ago                        stoic_roentgen +
-04b5ab87539a        ubuntu              "/bin/bash"              3 hours ago         Exited (0) 3 hours ago                        i2tch +
-root@debian9:~# docker run -it --name mongo i2tch/mongodb +
-[root@bcec3f27ed58 /]# about to fork child process, waiting until server is ready for connections. +
-forked process: 16 +
-child process started successfully, parent exiting+
  
 +root@debian11:~# docker ps -a
 +CONTAINER ID   IMAGE     COMMAND                  CREATED       STATUS                   PORTS                               NAMES
 +5bec576b4b69   nginx     "/docker-entrypoint.…"   2 hours ago   Up 2 hours               0.0.0.0:81->80/tcp, :::81->80/tcp   elegant_shockley
 +37cb0af1e97f   nginx     "/docker-entrypoint.…"   2 hours ago   Created                                                      intelligent_fermi
 +d838ea83033e   ubuntu    "/bin/bash"              2 hours ago   Exited (0) 2 hours ago                                       ittraining
 +
 +root@debian11:~# docker run -it --name mongo ittraining/mongodb
 +about to fork child process, waiting until server is ready for connections.
 +forked process: 19
 +[root@4e8fc8b07afe /]# child process started successfully, parent exiting
 +[Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Appuyer sur la touche Entrée
 [1]+  Done                    /usr/bin/mongod --config /etc/mongod.conf [1]+  Done                    /usr/bin/mongod --config /etc/mongod.conf
-[root@bcec3f27ed58 /]# ps aux + 
-USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND +[root@4e8fc8b07afe /]# ps aux 
-root         1  0.0  0. 11828  2920 pts/0    Ss   17:26   0:00 bash +USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 
-root        16  2. 2.4 298788 49276        Sl   17:26   0:01 /usr/bin/mongod --config /etc/mongod.conf +root           1  0.0  0. 14980  3592 pts/0    Ss   14:05   0:00 bash 
-root        39  0.0  0. 51748  3476 pts/0    R+   17:27   0:00 ps aux +root          19  3. 0.6 1534072 105260      Sl   14:05   0:00 /usr/bin/mongod --config /etc/mongod.conf 
-[root@bcec3f27ed58 /]# +root          56  0.0  0. 47604  3672 pts/0    R+   14:05   0:00 ps aux 
 + 
 +[root@4e8fc8b07afe /]# 
 </code> </code>
  
Ligne 1960: Ligne 2216:
  
 <code> <code>
-[root@bcec3f27ed58 /]# vi /etc/mongod.conf +[root@4e8fc8b07afe /]# vi /etc/mongod.conf 
-[root@bcec3f27ed58 /]# cat /etc/mongod.conf | grep bindIp + 
-   bindIp: 0.0.0.0+[root@4e8fc8b07afe /]# cat /etc/mongod.conf | grep bindIp 
 +  bindIp: 0.0.0.0  # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
 </code> </code>
  
Ligne 1968: Ligne 2225:
  
 <code> <code>
-[root@bcec3f27ed58 /]# exit+[root@4e8fc8b07afe /]# exit
 exit exit
-root@debian9:~# docker commit mongo i2tch/mongodb + 
-sha256:eca7835d4fe6a3a769046bd735ef4ad7534ac1f9bb37832d6da5db3b938d258f +root@debian11:~# docker commit mongo ittraining/mongodb 
-root@debian9:~# docker rm mongo+sha256:eaf8432e4d74fbc4c1f805279fc7d62cb927c5c60010f1ef33f099cc483a9471 
 + 
 +root@debian11:~# docker rm mongo
 mongo mongo
-root@debian9:~# docker run -it --name mongo i2tch/mongodb 
-[root@d2ddb4f8ca8a /]# about to fork child process, waiting until server is ready for connections. 
-forked process: 16 
-[root@d2ddb4f8ca8a /]# child process started successfully, parent exiting 
  
 +root@debian11:~# docker run -it --name mongo ittraining/mongodb
 +about to fork child process, waiting until server is ready for connections.
 +forked process: 19
 +[root@e2ace1b2a6a2 /]# child process started successfully, parent exiting
 +[Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Appuyer sur la touche Entrée
 [1]+  Done                    /usr/bin/mongod --config /etc/mongod.conf [1]+  Done                    /usr/bin/mongod --config /etc/mongod.conf
-[root@d2ddb4f8ca8a /]# + 
 +[root@e2ace1b2a6a2 /]# 
 </code> </code>
  
Ligne 1986: Ligne 2247:
  
 <code> <code>
-[root@f5b45072b831 /]# exit +[root@e2ace1b2a6a2 /]# exit 
-root@debian9:~# +exit 
-root@debian9:~# apt-get install dirmngr +root@debian11:~# 
-root@debian9:~# + 
-root@debian9:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 +root@debian11:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 
-Executing: /tmp/apt-key-gpghome.xMuszKS6JM/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4+Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). 
 +Executing: /tmp/apt-key-gpghome.f5dbDP3oUn/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
 gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key <packaging@mongodb.com>" imported gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key <packaging@mongodb.com>" imported
 gpg: Total number processed: 1 gpg: Total number processed: 1
 gpg:               imported: 1 gpg:               imported: 1
-root@debian9:~#  + 
-root@debian9:~# echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list +root@debian11:~# echo "deb [trusted=yes] http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list 
-deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main +deb [trusted=yes] http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main 
-root@debian9:~#  + 
-root@debian9:~# apt-get update+root@debian11:~# apt-get update 
 +...
 </code> </code>
  
Ligne 2005: Ligne 2268:
  
 <code> <code>
-root@debian9:~# apt-get install mongodb-org-shell +root@debian11:~# apt-get install mongodb-org-shell 
-Lecture des listes de paquets... Fait +Reading package lists... Done 
-Construction de l'arbre des dépendances        +Building dependency tree... Done 
-Lecture des informations d'état... Fait +Reading state information... Done 
-Les NOUVEAUX paquets suivants seront installés :+The following packages were automatically installed and are no longer required: 
 +  libopengl0 linux-headers-5.10.0-15-amd64 linux-headers-5.10.0-15-common 
 +Use 'apt autoremove' to remove them. 
 +The following NEW packages will be installed:
   mongodb-org-shell   mongodb-org-shell
-mis à jour, 1 nouvellement installés, 0 à enlever et 95 non mis à jour+upgraded, 1 newly installed, 0 to remove and 5 not upgraded
-Il est nécessaire de prendre 809 ko dans les archives. +Need to get 9,970 kB of archives. 
-Après cette opération39,8 Mo d'espace disque supplémentaires seront utilisés+After this operation40.3 MB of additional disk space will be used
-Réception de:1 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0/main amd64 mongodb-org-shell amd64 4.0.[9 809 kB] +Get:1 http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0/main amd64 mongodb-org-shell amd64 4.0.28 [9,970 kB] 
-809 ko réceptionnés en 7s (1 245 ko/s)                                                                                                                                 +Fetched 9,970 kB in 1s (10.8 MB/s)              
-Sélection du paquet mongodb-org-shell précédemment désélectionné+Selecting previously unselected package mongodb-org-shell. 
-(Lecture de la base de données... 91513 fichiers et répertoires déjà installés.) +(Reading database ... 166761 files and directories currently installed.) 
-Préparation du dépaquetage de .../mongodb-org-shell_4.0.8_amd64.deb ... +Preparing to unpack .../mongodb-org-shell_4.0.28_amd64.deb ... 
-Dépaquetage de mongodb-org-shell (4.0.8) ... +Unpacking mongodb-org-shell (4.0.28) ... 
-Paramétrage de mongodb-org-shell (4.0.8) ... +Setting up mongodb-org-shell (4.0.28) ... 
-Traitement des actions différées (« triggers ») pour man-db (2.7.6.1-2) ...+Processing triggers for man-db (2.9.4-2) ...
 </code> </code>
  
Ligne 2027: Ligne 2293:
  
 <code> <code>
-root@debian9:~# docker inspect mongo | grep IP+root@debian11:~# docker inspect mongo | grep IP
             "LinkLocalIPv6Address": "",             "LinkLocalIPv6Address": "",
             "LinkLocalIPv6PrefixLen": 0,             "LinkLocalIPv6PrefixLen": 0,
Ligne 2048: Ligne 2314:
  
 <code> <code>
-root@debian9:~# docker start mongo+root@debian11:~# docker start mongo
 mongo mongo
-root@debian9:~# docker inspect mongo | grep IP+ 
 +root@debian11:~# docker inspect mongo | grep IP
             "LinkLocalIPv6Address": "",             "LinkLocalIPv6Address": "",
             "LinkLocalIPv6PrefixLen": 0,             "LinkLocalIPv6PrefixLen": 0,
Ligne 2066: Ligne 2333:
                     "GlobalIPv6Address": "",                     "GlobalIPv6Address": "",
                     "GlobalIPv6PrefixLen": 0,                     "GlobalIPv6PrefixLen": 0,
 +
 +root@debian11:~#
 </code> </code>
  
Ligne 2071: Ligne 2340:
  
 <code> <code>
-root@debian9:~# mongo --host 172.17.0.3 +root@debian11:~# mongo --host 172.17.0.3 
-MongoDB shell version v4.0.8+MongoDB shell version v4.0.28
 connecting to: mongodb://172.17.0.3:27017/?gssapiServiceName=mongodb connecting to: mongodb://172.17.0.3:27017/?gssapiServiceName=mongodb
-WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater. +Implicit session: session { "id" UUID("c1fadd17-a76c-4ca2-aa0e-b06498c55ba5") } 
-Implicit session: dummy session +MongoDB server version: 4.2.24
-MongoDB server version: 4.2.2+
 WARNING: shell and server versions do not match WARNING: shell and server versions do not match
 Welcome to the MongoDB shell. Welcome to the MongoDB shell.
 For interactive help, type "help". For interactive help, type "help".
 For more comprehensive documentation, see For more comprehensive documentation, see
- http://docs.mongodb.org/+        http://docs.mongodb.org/
 Questions? Try the support group Questions? Try the support group
- http://groups.google.com/group/mongodb-user+        http://groups.google.com/group/mongodb-user
 Server has startup warnings:  Server has startup warnings: 
-2019-04-09T17:31:33.827+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten]  
-2019-04-09T17:31:33.827+0000 I CONTROL  [initandlisten]  +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database. 
->   +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted. 
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. 
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten]  
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten]  
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten] **        We suggest setting it to 'never' 
 +2023-08-19T14:43:49.070+0000 I  CONTROL  [initandlisten]  
 +--- 
 +Enable MongoDB's free cloud-based monitoring service, which will then receive and display 
 +metrics about your deployment (disk utilization, CPU, operation statistics, etc). 
 + 
 +The monitoring data will be available on a MongoDB website with a unique URL accessible to you 
 +and anyone you share the URL with. MongoDB may use this information to make product 
 +improvements and to suggest MongoDB products and deployment options to you. 
 + 
 +To enable free monitoring, run the following command: db.enableFreeMonitoring() 
 +To permanently disable this reminder, run the following command: db.disableFreeMonitoring() 
 +--- 
 + 
 +exit 
 +bye 
 +root@debian11:~#   
 </code> </code>
  
 ----- -----
  
-Copyright © 2022 Hugh Norris.+Copyright © 2024 Hugh Norris.
  
Menu