Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
elearning:workbooks:docker3:en:dre01 [2023/12/17 05:23] – created adminelearning:workbooks:docker3:en:dre01 [2024/12/17 13:46] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2023.01**+Version : **2024.01**
  
 Last update : ~~LASTMOD~~ Last update : ~~LASTMOD~~
Ligne 111: Ligne 111:
   * Jenkins.   * Jenkins.
  
-You can also create your own plugin.+You can also create your own plugins.
  
 ====Docker CE and Docker EE==== ====Docker CE and Docker EE====
Ligne 154: Ligne 154:
   * **Basic** - (official Docker support (J) and certified containers and plugins),   * **Basic** - (official Docker support (J) and certified containers and plugins),
     * $1,500 per node per year (2022),     * $1,500 per node per year (2022),
-  * Standard** - (Basic + advanced image and container management, support for user authentication via LDAP/AD, RBAC),+  * **Standard** - (Basic + advanced image and container management, support for user authentication via LDAP/AD, RBAC),
     * $3,000 per node per year (2022),     * $3,000 per node per year (2022),
-  * Advanced** - (Standard + security scanning and continuous vulnerability monitoring),+  * **Advanced** - (Standard + security scanning and continuous vulnerability monitoring),
     * $3,500 per node per year (2022).     * $3,500 per node per year (2022).
  
Ligne 193: Ligne 193:
 Please note that since the names of Docker packages have changed, you should uninstall any previous version of Docker before installing the current version: Please note that since the names of Docker packages have changed, you should uninstall any previous version of Docker before installing the current version:
  
-For example under Debian and Ubuntu:+**For example** under Debian and Ubuntu:
  
 <code> <code>
Ligne 271: Ligne 271:
  
 <WRAP center round important 50%> <WRAP center round important 50%>
-**Important** - Note that the **lsb_release -cs** command returns the name of the Debian distribution, which in this case is **stretch**.+**Important** - Note that the **lsb_release -cs** command returns the name of the Debian version.
 </WRAP> </WRAP>
  
Ligne 306: Ligne 306:
 <code> <code>
 root@debian11:~# docker version root@debian11:~# docker version
-Client: Docker Engine - Community[root@centos8 ~]# yum remove podman +Client: Docker Engine - Community
-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!+
  Version: 24.0.5  Version: 24.0.5
  API version: 1.43  API version: 1.43
Ligne 588: Ligne 544:
  
 Complete! Complete!
 +</code>
  
 +<code>
 [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 1229: Ligne 1187:
 </WRAP> </WRAP>
  
-====1.5 - Deleting a Container from an Image====+====1.5 - Deleting a Container====
  
-To remove a container from an image, the **docker rm** command should be used, referencing the container either by its **NAME** or by its CONTAINER ID :+To remove a container, the **docker rm** command should be used, referencing the container either by its **NAME** or by its CONTAINER ID :
  
 <code> <code>
Ligne 1258: Ligne 1216:
 ====1.6 -Creating an Image from a Modified Container=== ====1.6 -Creating an Image from a Modified Container===
  
-Modifying an image container:+Modify the ubuntu container:
  
 <code> <code>
Ligne 1672: Ligne 1630:
 ====1.10 - Injecting Environment Variables into a Container==== ====1.10 - Injecting Environment Variables into a Container====
  
-To inject one or more environment variables into a container, use a pre-established file:+To inject one or more environment variables into a container, use a file:
  
 <code> <code>
Ligne 1706: Ligne 1664:
 </code> </code>
  
-=====1.12 - Mapping Ports of a Container=====+====1.12 - Mapping Ports of a Container====
  
 Start a nginx container on port localhost 81 : Start a nginx container on port localhost 81 :
Ligne 1729: Ligne 1687:
 </code> </code>
  
-Note that using ^C interrupted the container process:+Note that using ^C killed the container process:
  
 <code> <code>
Ligne 1831: Ligne 1789:
 </code> </code>
  
-====.16 - Using Signals with a Container====+====1.16 - Using Signals with a Container====
  
 Use a signal to kill the nginx container process: Use a signal to kill the nginx container process:
Ligne 1868: Ligne 1826:
 </code> </code>
  
-====.17 - Force Delete a Running Container====+====1.17 - Force Delete a Running Container====
  
 Delete a running container: Delete a running container:
Ligne 1896: Ligne 1854:
  
 <code> <code>
 +root@debian11:~# mkdir www
 +
 root@debian11:~# vi index.html root@debian11:~# vi index.html
  
Ligne 1923: Ligne 1883:
  
 <WRAP center round important 50%> <WRAP center round important 50%>
-**Important** - Note here the use of **ro** - read-only.+**Important** - Note here the use of **ro** option - read-only.
 </WRAP> </WRAP>
  
Ligne 2238: Ligne 2198:
 </code> </code>
  
-Start the container again to check that mongod is working:+Create another container to check that mongod is working:
  
 <code> <code>
Ligne 2435: Ligne 2395:
  
 ----- -----
-Copyright © 2023 Hugh Norris.+Copyright © 2024 Hugh Norris.
  
Menu