Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:docker3:drf01 [2023/08/18 13:48] – admin | elearning:workbooks:docker3:drf01 [2024/02/21 13:41] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | 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 |
* 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' | * une application Windows et Mac permettant la construction locale d' | ||
- | | + | |
Docker EE est disponible en trois sous-versions, | Docker EE est disponible en trois sous-versions, | ||
Ligne 202: | Ligne 202: | ||
< | < | ||
- | # apr-get | + | # yum remove docker |
</ | </ | ||
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 |
===1.1.1 - Debian 11=== | ===1.1.1 - Debian 11=== | ||
Ligne 384: | Ligne 384: | ||
Si vous préférez utiliser le script d' | Si vous préférez utiliser le script d' | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | **Important** - Notez que ces scripts ne doivent pas être utilisés dans un environnement de production. | ||
+ | </ | ||
< | < | ||
root@debian11: | root@debian11: | ||
+ | |||
root@debian11: | root@debian11: | ||
get-docker.sh | get-docker.sh | ||
Ligne 395: | Ligne 400: | ||
< | < | ||
root@debian11: | root@debian11: | ||
+ | |||
root@debian11: | root@debian11: | ||
# Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b | # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b | ||
Ligne 414: | Ligne 420: | ||
**Important** - Notez l' | **Important** - Notez l' | ||
</ | </ | ||
- | |||
- | ====1.2 - Démarrer un Conteneur==== | ||
Démarrez un conteneur de l' | Démarrez un conteneur de l' | ||
Ligne 449: | Ligne 453: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** - Notez que si l' | **Important** - Notez que si l' | ||
</ | </ | ||
===1.1.2 - CentOS 8=== | ===1.1.2 - CentOS 8=== | ||
+ | |||
+ | Connectez-vous à votre VM **CentOS_10.0.2.45_SSH** à partir de votre VM **Debian_10.0.2.46_SSH** : | ||
+ | |||
+ | < | ||
+ | root@debian11: | ||
+ | The authenticity of host ' | ||
+ | ECDSA key fingerprint is SHA256: | ||
+ | Are you sure you want to continue connecting (yes/ | ||
+ | Warning: Permanently added ' | ||
+ | trainee@10.0.2.45' | ||
+ | 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 ~]$ | ||
+ | </ | ||
+ | |||
+ | Devenez root : | ||
+ | |||
+ | < | ||
+ | [trainee@centos8 ~]$ su - | ||
+ | Password: fenestros | ||
+ | [root@centos8 ~]# | ||
+ | </ | ||
+ | |||
+ | Ajouter le dépôt de docker : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# yum install -y yum-utils | ||
+ | Last metadata expiration check: 0:05:37 ago on Fri 18 Aug 2023 15:53:49 CEST. | ||
+ | Package yum-utils-4.0.21-3.el8.noarch is already installed. | ||
+ | Dependencies resolved. | ||
+ | Nothing to do. | ||
+ | Complete! | ||
+ | |||
+ | [root@centos8 ~]# yum-config-manager --add-repo https:// | ||
+ | Adding repo from: https:// | ||
+ | </ | ||
+ | |||
+ | Supprimez le paquet **podman** et installez **Docker** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# yum remove podman | ||
+ | Dependencies resolved. | ||
+ | ====================================================================================== | ||
+ | | ||
+ | ====================================================================================== | ||
+ | Removing: | ||
+ | | ||
+ | Removing dependent packages: | ||
+ | | ||
+ | Removing unused dependencies: | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ====================================================================================== | ||
+ | Remove | ||
+ | |||
+ | 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 | ||
+ | Running scriptlet: cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Running scriptlet: podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64 | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Running scriptlet: conmon-2: | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Installed products updated. | ||
+ | |||
+ | Removed: | ||
+ | cockpit-podman-33-1.module_el8.5.0+890+6b136101.noarch | ||
+ | conmon-2: | ||
+ | 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 | ||
+ | Last metadata expiration check: 0:05:43 ago on Fri 18 Aug 2023 16:04:20 CEST. | ||
+ | Dependencies resolved. | ||
+ | ====================================================================================== | ||
+ | | ||
+ | ====================================================================================== | ||
+ | Installing: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Installing dependencies: | ||
+ | | ||
+ | | ||
+ | Installing weak dependencies: | ||
+ | | ||
+ | | ||
+ | Removing dependent packages: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ====================================================================================== | ||
+ | Install | ||
+ | Remove | ||
+ | |||
+ | Total download size: 96 M | ||
+ | Is this ok [y/N]: y | ||
+ | |||
+ | Transaction Summary | ||
+ | ====================================================================================== | ||
+ | Install | ||
+ | Remove | ||
+ | |||
+ | Total download size: 96 M | ||
+ | Is this ok [y/N]: y | ||
+ | Downloading Packages: | ||
+ | (1/7): libcgroup-0.41-19.el8.x86_64.rpm | ||
+ | (2/7): docker-buildx-plugin-0.11.2-1.el8.x86_64.rpm | ||
+ | (3/7): docker-ce-cli-24.0.5-1.el8.x86_64.rpm | ||
+ | (4/7): docker-ce-24.0.5-1.el8.x86_64.rpm | ||
+ | (5/7): containerd.io-1.6.22-3.1.el8.x86_64.rpm | ||
+ | (6/7): docker-ce-rootless-extras-24.0.5-1.el8.x86_64. 322 kB/s | 4.9 MB | ||
+ | (7/7): docker-compose-plugin-2.20.2-1.el8.x86_64.rpm | ||
+ | -------------------------------------------------------------------------------------- | ||
+ | Total 3.7 MB/s | 96 MB | ||
+ | Docker CE Stable - x86_64 | ||
+ | Importing GPG key 0x621E9F35: | ||
+ | | ||
+ | | ||
+ | | ||
+ | Is this ok [y/N]: y | ||
+ | Key imported successfully | ||
+ | Running transaction check | ||
+ | Transaction check succeeded. | ||
+ | Running transaction test | ||
+ | Transaction test succeeded. | ||
+ | Running transaction | ||
+ | Preparing | ||
+ | Installing | ||
+ | Running scriptlet: docker-compose-plugin-2.20.2-1.el8.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: docker-buildx-plugin-0.11.2-1.el8.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: docker-ce-cli-1: | ||
+ | Installing | ||
+ | Running scriptlet: containerd.io-1.6.22-3.1.el8.x86_64 | ||
+ | Running scriptlet: libcgroup-0.41-19.el8.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: libcgroup-0.41-19.el8.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: docker-ce-rootless-extras-24.0.5-1.el8.x86_64 | ||
+ | Installing | ||
+ | Running scriptlet: docker-ce-3: | ||
+ | Erasing | ||
+ | Erasing | ||
+ | Obsoleting | ||
+ | Running scriptlet: runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Installed products updated. | ||
+ | |||
+ | Installed: | ||
+ | containerd.io-1.6.22-3.1.el8.x86_64 | ||
+ | docker-buildx-plugin-0.11.2-1.el8.x86_64 | ||
+ | docker-ce-3: | ||
+ | docker-ce-cli-1: | ||
+ | docker-ce-rootless-extras-24.0.5-1.el8.x86_64 | ||
+ | docker-compose-plugin-2.20.2-1.el8.x86_64 | ||
+ | libcgroup-0.41-19.el8.x86_64 | ||
+ | Removed: | ||
+ | buildah-1.22.3-2.module_el8.5.0+911+f19012f9.x86_64 | ||
+ | containers-common-2: | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | Démarrez ensuite le service docker : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# systemctl status docker | ||
+ | ● docker.service - Docker Application Container Engine | ||
+ | | ||
+ | | ||
+ | Docs: https:// | ||
+ | [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
+ | |||
+ | [root@centos8 ~]# systemctl start docker | ||
+ | |||
+ | [root@centos8 ~]# systemctl status docker | ||
+ | ● docker.service - Docker Application Container Engine | ||
+ | | ||
+ | | ||
+ | Docs: https:// | ||
+ | Main PID: 49974 (dockerd) | ||
+ | Tasks: 13 | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Aug 18 16:19:33 centos8.ittraining.loc systemd[1]: Starting Docker Application Contai> | ||
+ | Aug 18 16:19:33 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:33 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:34 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:35 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:35 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:35 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:35 centos8.ittraining.loc dockerd[49974]: | ||
+ | Aug 18 16:19:35 centos8.ittraining.loc systemd[1]: Started Docker Application Contain> | ||
+ | [q] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
+ | [root@centos8 ~]# | ||
+ | </ | ||
+ | |||
+ | Dans le cas où vous souhaitez installer une version différente, | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# yum list docker-ce --showduplicates | sort -r | ||
+ | Last metadata expiration check: 0:03:42 ago on Fri 18 Aug 2023 16:11:47 CEST. | ||
+ | Installed Packages | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | docker-ce.x86_64 3: | ||
+ | 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 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | docker-ce-cli.x86_64 | ||
+ | Available Packages | ||
+ | </ | ||
+ | |||
+ | Dans le cas où vous souhaiteriez installer la version **24.0.4** de Docker, la commande d’installation deviendrait : | ||
+ | |||
+ | < | ||
+ | # yum install docker-ce-3: | ||
+ | </ | ||
+ | |||
+ | Si vous préférez utiliser le script d' | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | **Important** - Notez que ces scripts ne doivent pas être utilisés dans un environnement de production. | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# curl -fsSL https:// | ||
+ | |||
+ | [root@centos8 ~]# ls | ||
+ | anaconda-ks.cfg | ||
+ | CentOS-8.1.1911-x86_64-boot.iso | ||
+ | Desktop | ||
+ | Documents | ||
+ | </ | ||
+ | |||
+ | Ensuite, il convient d' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# chmod +x get-docker.sh | ||
+ | |||
+ | [root@centos8 ~]# ./ | ||
+ | # Executing docker install script, commit: c2de0811708b6d9015ed1a2c80f02c9b70c8ce7b | ||
+ | Warning: the " | ||
+ | |||
+ | If you already have Docker installed, this script can cause trouble, which is | ||
+ | why we're displaying this warning and provide the opportunity to cancel the | ||
+ | installation. | ||
+ | |||
+ | If you installed the current Docker package using this script and are using it | ||
+ | again to update Docker, you can safely ignore this message. | ||
+ | |||
+ | You may press Ctrl+C now to abort this script. | ||
+ | + sleep 20 | ||
+ | ^C | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | **Important** - Notez l' | ||
+ | </ | ||
+ | |||
+ | Démarrez un conteneur de l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# docker run hello-world | ||
+ | Unable to find image ' | ||
+ | latest: Pulling from library/ | ||
+ | 719385e32844: | ||
+ | Digest: sha256: | ||
+ | Status: Downloaded newer image for hello-world: | ||
+ | |||
+ | Hello from Docker! | ||
+ | This message shows that your installation appears to be working correctly. | ||
+ | |||
+ | To generate this message, Docker took the following steps: | ||
+ | 1. The Docker client contacted the Docker daemon. | ||
+ | 2. The Docker daemon pulled the " | ||
+ | (amd64) | ||
+ | 3. The Docker daemon created a new container from that image which runs the | ||
+ | executable that produces the output you are currently reading. | ||
+ | 4. The Docker daemon streamed that output to the Docker client, which sent it | ||
+ | to your terminal. | ||
+ | |||
+ | To try something more ambitious, you can run an Ubuntu container with: | ||
+ | $ docker run -it ubuntu bash | ||
+ | |||
+ | Share images, automate workflows, and more with a free Docker ID: | ||
+ | | ||
+ | |||
+ | For more examples and ideas, visit: | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 50%> | ||
+ | **Important** - Notez que si l' | ||
+ | </ | ||
+ | |||
+ | ====1.2 - Démarrer un Conteneur==== | ||
Démarrez un conteneur de l' | Démarrez un conteneur de l' | ||
< | < | ||
- | root@debian9:~# docker run -it ubuntu bash | + | root@debian11:~# docker run -it ubuntu bash |
Unable to find image ' | Unable to find image ' | ||
latest: Pulling from library/ | latest: Pulling from library/ | ||
- | 898c46f3b1a1: | + | b237fe92c417: Pull complete |
- | 63366dfa0a50: | + | Digest: sha256:ec050c32e4a6085b423d36ecd025c0d3ff00c38ab93a3d71a460ff1c44fa6d77 |
- | 041d4cd74a92: | + | |
- | 6e1bee0f8701: Pull complete | + | |
- | Digest: sha256:017eef0b616011647b269b5c65826e2e2ebddbe5d1f8c1e56b3599fb14fabec8 | + | |
Status: Downloaded newer image for ubuntu: | Status: Downloaded newer image for ubuntu: | ||
- | 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 / | + | bin boot dev etc home lib |
+ | |||
+ | root@83b0d8979a33:/# cat / | ||
DISTRIB_ID=Ubuntu | DISTRIB_ID=Ubuntu | ||
- | DISTRIB_RELEASE=18.04 | + | DISTRIB_RELEASE=22.04 |
- | DISTRIB_CODENAME=bionic | + | DISTRIB_CODENAME=jammy |
- | DISTRIB_DESCRIPTION=" | + | DISTRIB_DESCRIPTION=" |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**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. | ||
</ | </ | ||
Ligne 483: | Ligne 898: | ||
< | < | ||
- | root@835001339e79:/# dpkg -l | + | root@83b0d8979a33:/# dpkg -l |
Desired=Unknown/ | Desired=Unknown/ | ||
| Status=Not/ | | Status=Not/ | ||
|/ Err? | |/ Err? | ||
- | ||/ Name Version | + | ||/ Name |
- | +++-====================================-=======================-=======================-============================================================================= | + | +++-=======================-=======================================-============-======================================================================== |
- | ii adduser | + | ii adduser |
- | ii apt 1.6.8 amd64 | + | ii apt 2.4.9 amd64 commandline package manager |
- | ii base-files | + | ii base-files |
- | ii base-passwd | + | ii base-passwd |
- | ii bash 4.4.18-2ubuntu1 | + | ii bash 5.1-6ubuntu1 |
- | ii bsdutils | + | ii bsdutils |
- | ii | + | ii |
- | ii coreutils | + | ii dash 0.5.11+git20210903+057cd650a4ed-3build1 |
- | ii dash | + | ii debconf |
- | ii debconf | + | ii debianutils |
- | ii debianutils | + | ii diffutils |
- | ii diffutils | + | ii dpkg 1.21.1ubuntu2.2 amd64 Debian package management system |
- | ii dpkg | + | ii e2fsprogs |
- | ii e2fsprogs | + | ii findutils |
- | ii fdisk 2.31.1-0.4ubuntu3.3 | + | ii gcc-12-base: |
- | ii findutils | + | ii gpgv 2.2.27-3ubuntu2.1 |
- | ii gcc-8-base: | + | ii grep 3.7-1build1 |
- | ii gpgv | + | ii gzip 1.10-4ubuntu4.1 |
- | ii grep | + | ii hostname |
- | ii gzip | + | ii init-system-helpers |
- | ii hostname | + | ii libacl1: |
- | ii init-system-helpers | + | ii libapt-pkg6.0: |
- | ii libacl1: | + | ii libattr1: |
- | ii libapt-pkg5.0: | + | ii libaudit-common |
- | ii libattr1: | + | ii libaudit1: |
- | ii libaudit-common | + | ii libblkid1: |
- | ii libaudit1: | + | ii libbz2-1.0: |
- | ii libblkid1: | + | ii libc-bin |
- | ii libbz2-1.0: | + | ii libc6: |
- | ii libc-bin | + | ii libcap-ng0: |
- | ii libc6: | + | ii libcap2: |
- | ii libcap-ng0: | + | ii libcom-err2: |
- | ii libcom-err2: | + | ii libcrypt1: |
- | ii libdb5.3: | + | ii libdb5.3: |
- | ii libdebconfclient0: | + | ii libdebconfclient0: |
- | ii libext2fs2: | + | ii libext2fs2: |
- | ii | + | ii |
- | ii libffi6: | + | ii |
- | ii | + | ii libgcrypt20: |
- | ii libgcrypt20: | + | ii libgmp10: |
- | ii libgmp10: | + | ii libgnutls30: |
- | ii libgnutls30: | + | ii libgpg-error0: |
- | ii libgpg-error0: | + | ii |
- | ii | + | ii libhogweed6: |
- | ii libidn2-0: | + | ii libidn2-0: |
- | ii | + | ii |
- | ii liblzma5: | + | ii libkeyutils1: |
- | ii libmount1: | + | ii libkrb5-3: |
- | ii | + | ii libkrb5support0: |
- | ii | + | ii liblz4-1: |
- | ii | + | ii liblzma5: |
- | ii libp11-kit0: | + | ii libmount1: |
- | ii libpam-modules: | + | ii |
- | ii libpam-modules-bin | + | ii |
- | ii libpam-runtime | + | ii |
- | ii libpam0g: | + | ii libnsl2: |
- | ii libpcre3: | + | ii libp11-kit0: |
- | ii | + | ii libpam-modules: |
- | ii libseccomp2: | + | ii libpam-modules-bin |
- | ii libselinux1: | + | ii libpam-runtime |
- | ii libsemanage-common | + | ii libpam0g: |
- | ii | + | ii libpcre2-8-0: |
- | ii | + | ii libpcre3: |
- | ii libsmartcols1: | + | ii |
- | ii libss2: | + | ii libseccomp2: |
- | ii libstdc++6: | + | ii libselinux1: |
- | ii libsystemd0: | + | ii libsemanage-common |
- | ii libtasn1-6: | + | ii |
- | ii | + | ii |
- | ii | + | ii libsmartcols1: |
- | ii libunistring2: | + | ii libss2: |
- | ii libuuid1: | + | ii libssl3: |
- | ii libzstd1: | + | ii libstdc++6: |
- | ii login 1:4.5-1ubuntu1 | + | ii libsystemd0: |
- | ii lsb-base | + | ii libtasn1-6: |
- | ii mawk | + | ii |
- | ii mount 2.31.1-0.4ubuntu3.3 amd64 | + | ii |
- | ii ncurses-base | + | ii libtirpc3: |
- | ii ncurses-bin | + | ii libudev1:amd64 |
- | ii passwd | + | ii libunistring2: |
- | ii perl-base | + | ii libuuid1: |
- | ii procps | + | ii libxxhash0: |
- | ii sed 4.4-2 amd64 | + | ii libzstd1: |
- | ii sensible-utils | + | ii login |
- | ii sysvinit-utils | + | ii logsave |
- | ii tar 1.29b-2ubuntu0.1 amd64 | + | ii lsb-base |
- | ii ubuntu-keyring | + | ii mawk 1.3.4.20200120-3 |
- | ii util-linux | + | ii mount |
- | ii zlib1g: | + | ii ncurses-base |
- | root@835001339e79:/# exit | + | ii ncurses-bin |
+ | ii passwd | ||
+ | ii perl-base | ||
+ | ii procps | ||
+ | ii sed | ||
+ | ii sensible-utils | ||
+ | ii sysvinit-utils | ||
+ | ii tar | ||
+ | ii ubuntu-keyring | ||
+ | ii usrmerge | ||
+ | ii util-linux | ||
+ | ii zlib1g: | ||
+ | root@83b0d8979a33:/# exit | ||
exit | exit | ||
- | root@debian9:~# | + | root@debian11:~# |
</ | </ | ||
Ligne 586: | Ligne 1013: | ||
< | < | ||
- | root@debian9:~# docker run --help | + | root@debian11:~# docker run --help |
+ | |||
+ | Usage: | ||
- | Usage: | + | Create and run a new container from an image |
- | Run a command in a new container | + | Aliases: |
+ | docker | ||
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 | --blkio-weight uint16 | ||
Ligne 600: | Ligne 1031: | ||
--cap-drop list Drop Linux capabilities | --cap-drop list Drop Linux capabilities | ||
--cgroup-parent string | --cgroup-parent string | ||
+ | --cgroupns string | ||
+ | ' | ||
+ | ' | ||
+ | '': | ||
+ | default-cgroupns-mode option on the daemon (default) | ||
--cidfile string | --cidfile string | ||
--cpu-period int Limit CPU CFS (Completely Fair Scheduler) period | --cpu-period int Limit CPU CFS (Completely Fair Scheduler) period | ||
Ligne 621: | 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 | ||
--entrypoint string | --entrypoint string | ||
-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 | ||
--group-add list Add additional groups to join | --group-add list Add additional groups to join | ||
--health-cmd string | --health-cmd string | ||
Ligne 653: | Ligne 1091: | ||
--mount mount Attach a filesystem mount to the container | --mount mount Attach a filesystem mount to the container | ||
--name string | --name string | ||
- | --network | + | --network |
--network-alias list Add network-scoped alias for the container | --network-alias list Add network-scoped alias for the container | ||
--no-healthcheck | --no-healthcheck | ||
Ligne 660: | Ligne 1098: | ||
--pid string | --pid string | ||
--pids-limit int Tune container pids limit (set -1 for unlimited) | --pids-limit int Tune container pids limit (set -1 for unlimited) | ||
+ | --platform string | ||
--privileged | --privileged | ||
-p, --publish list | -p, --publish list | ||
-P, --publish-all | -P, --publish-all | ||
+ | --pull string | ||
+ | -q, --quiet | ||
--read-only | --read-only | ||
--restart string | --restart string | ||
Ligne 670: | Ligne 1111: | ||
--shm-size bytes Size of /dev/shm | --shm-size bytes Size of /dev/shm | ||
--sig-proxy | --sig-proxy | ||
- | --stop-signal string | + | --stop-signal string |
--stop-timeout int | --stop-timeout int | ||
--storage-opt list | --storage-opt list | ||
Ligne 691: | Ligne 1132: | ||
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 3a3f9bda6cbd | + | 83b0d8979a33 |
- | 26ef17bd115d | + | 5d17db3bbb20 |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**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**. | ||
</ | </ | ||
Ligne 704: | Ligne 1145: | ||
< | < | ||
- | root@debian9:~# docker images | + | root@debian11:~# docker images |
- | REPOSITORY | + | REPOSITORY |
- | ubuntu | + | ubuntu |
- | hello-world | + | hello-world |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**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. | ||
</ | </ | ||
Ligne 719: | Ligne 1160: | ||
< | < | ||
- | root@debian9:~# docker search --filter=stars=5 centos | + | root@debian11:~# docker search --filter=stars=5 centos |
- | NAME DESCRIPTION | + | NAME DESCRIPTION |
- | centos | + | centos |
- | ansible/ | + | kasmweb/centos-7-desktop |
- | jdeathe/centos-ssh CentOS-6 6.10 x86_64 / CentOS-7 7.5.1804 x86… | + | couchbase/centos7-systemd |
- | consol/centos-xfce-vnc Centos container | + | dokken/ |
- | imagine10255/centos6-lnmp-php56 | + | eclipse/centos_jdk8 |
- | centos/mysql-57-centos7 | + | dokken/centos-stream-9 |
- | tutum/ | + | |
- | gluster/ | + | |
- | openshift/ | + | |
- | centos/postgresql-96-centos7 | + | |
- | centos/ | + | |
- | kinogmt/ | + | |
- | centos/httpd-24-centos7 | + | |
- | centos/php-56-centos7 | + | |
- | openshift/ | + | |
- | pivotaldata/ | + | |
- | openshift/ | + | |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** - Notez que chaque image est référencée par la colonne NAME. Le NAME est sous le format **repository/ | **Important** - Notez que chaque image est référencée par la colonne NAME. Le NAME est sous le format **repository/ | ||
</ | </ | ||
Ligne 749: | Ligne 1179: | ||
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 3a3f9bda6cbd | + | 83b0d8979a33 |
- | 26ef17bd115d | + | 5d17db3bbb20 |
- | root@debian9:~# docker rm wizardly_buck | + | |
- | wizardly_buck | + | root@debian11:~# docker rm upbeat_diffie |
- | root@debian9:~# docker ps -a | + | upbeat_diffie |
- | CONTAINER ID IMAGE | + | |
- | 26ef17bd115d | + | root@debian11:~# docker ps -a |
- | root@debian9:~# docker images | + | CONTAINER ID |
- | REPOSITORY | + | 5d17db3bbb20 |
- | ubuntu | + | |
- | hello-world | + | root@debian11:~# docker images |
+ | REPOSITORY | ||
+ | ubuntu | ||
+ | hello-world | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
- | **Important** - Notez que dans le cas de l' | + | **Important** - Notez que dans le cas de l' |
</ | </ | ||
Ligne 773: | Ligne 1206: | ||
< | < | ||
- | 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 |
- | 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 | ||
+ | |||
+ | root@4377355f88c2:/# exit | ||
exit | exit | ||
- | root@debian9:~# | + | root@debian11:~# |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
- | **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**. |
</ | </ | ||
Ligne 791: | Ligne 1228: | ||
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 54b0dae2f3a9 | + | 4377355f88c2 |
- | 26ef17bd115d | + | 5d17db3bbb20 |
- | root@debian9:~# docker diff tender_mendeleev | + | |
+ | root@debian11:~# docker diff romantic_northcutt | ||
C /root | C /root | ||
A / | A / | ||
Ligne 801: | Ligne 1239: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**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. | ||
</ | </ | ||
Ligne 808: | Ligne 1246: | ||
< | < | ||
- | 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 |
+ | |||
+ | root@e4caf92a5ceb:/# exit | ||
exit | exit | ||
- | root@debian9:~# | + | |
+ | root@debian11:~# | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**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' | **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' | ||
</ | </ | ||
- | Créez maintenant l' | + | Créez maintenant l' |
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 92f0d4bb7967 | + | e4caf92a5ceb |
- | 54b0dae2f3a9 | + | 4377355f88c2 |
- | 26ef17bd115d | + | 5d17db3bbb20 |
- | root@debian9:~# docker commit | + | |
- | sha256:2ba8e0ec5e38332c8ab15c4b33fd140a9c74d72231d05a6965c40a39fbb44584 | + | root@debian11:~# docker commit |
- | root@debian9:~# docker images | + | sha256:50d66f88b992b65d0a38c4b662fbdcc906477916240a90d214b35a42b939ea5f |
- | REPOSITORY | + | |
- | ubuntu_1 | + | root@debian11:~# docker images |
- | ubuntu | + | REPOSITORY |
- | hello-world | + | ubuntu_1 |
+ | ubuntu | ||
+ | hello-world | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 842: | Ligne 1287: | ||
< | < | ||
- | 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 |
+ | |||
+ | root@86e777ebaf2b:/# exit | ||
exit | exit | ||
- | root@debian9:~# | + | |
+ | root@debian11:~# | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** - Notez l' | **Important** - Notez l' | ||
</ | </ | ||
Ligne 857: | Ligne 1305: | ||
< | < | ||
- | root@debian9:~# docker rmi ubuntu_1 | + | root@debian11:~# docker rmi ubuntu_1 |
- | Error response from daemon: conflict: unable to remove repository reference " | + | Error response from daemon: conflict: unable to remove repository reference " |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | 904215fb79b4 | + | CONTAINER ID |
- | 92f0d4bb7967 | + | 86e777ebaf2b |
- | 54b0dae2f3a9 | + | e4caf92a5ceb |
- | 26ef17bd115d | + | 4377355f88c2 |
+ | 5d17db3bbb20 | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
- | **Important** - Notez qu'il n'est pas possible de supprimer l' | + | **Important** - Notez qu'il n'est pas possible de supprimer l' |
</ | </ | ||
- | Supprimez donc le conteneur **priceless_swirles** ainsi que l' | + | Supprimez donc le conteneur |
< | < | ||
- | root@debian9:~# docker rm priceless_swirles | + | root@debian11:~# docker rm focused_colden |
- | priceless_swirles | + | focused_colden |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | 92f0d4bb7967 | + | CONTAINER ID |
- | 54b0dae2f3a9 | + | e4caf92a5ceb |
- | 26ef17bd115d | + | 4377355f88c2 |
- | root@debian9:~# docker rmi ubuntu_1 | + | 5d17db3bbb20 |
+ | |||
+ | root@debian11:~# docker rmi ubuntu_1 | ||
Untagged: ubuntu_1: | Untagged: ubuntu_1: | ||
- | Deleted: sha256:2ba8e0ec5e38332c8ab15c4b33fd140a9c74d72231d05a6965c40a39fbb44584 | + | Deleted: sha256:50d66f88b992b65d0a38c4b662fbdcc906477916240a90d214b35a42b939ea5f |
- | Deleted: sha256:308e9761a8fc84661e46eff564b0bbca12b458e71bdf77bf4abbb59b21efdbbe | + | Deleted: sha256:c5fdbe1dd17356fd868456c44949e0ca50c78a610a8917d7ad6ab372aeebce20 |
- | root@debian9:~# docker images | + | |
- | REPOSITORY | + | root@debian11:~# docker images |
- | ubuntu | + | REPOSITORY |
- | hello-world | + | ubuntu |
+ | hello-world | ||
</ | </ | ||
Ligne 894: | Ligne 1346: | ||
< | < | ||
- | root@debian9:~# docker ps -aq | + | root@debian11:~# docker ps -aq |
- | 92f0d4bb7967 | + | e4caf92a5ceb |
- | 54b0dae2f3a9 | + | 4377355f88c2 |
- | 26ef17bd115d | + | 5d17db3bbb20 |
</ | </ | ||
Ligne 903: | Ligne 1355: | ||
< | < | ||
- | 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:~# | ||
</ | </ | ||
Ligne 914: | Ligne 1368: | ||
< | < | ||
- | 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 |
+ | |||
+ | root@3b3d4d7be82b:/# exit | ||
exit | exit | ||
- | root@debian9:~# docker ps -aq | + | |
- | root@debian9:~# | + | root@debian11:~# docker ps -aq |
+ | |||
+ | root@debian11:~# | ||
</ | </ | ||
Ligne 928: | Ligne 1386: | ||
< | < | ||
- | root@debian9:~# docker run -it --name=i2tch ubuntu | + | root@debian11:~# docker run -it --name=ittraining |
- | 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 |
+ | |||
+ | root@d838ea83033e:/# exit | ||
exit | exit | ||
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | 04b5ab87539a | + | CONTAINER ID |
+ | d838ea83033e | ||
</ | </ | ||
Ligne 941: | Ligne 1402: | ||
< | < | ||
- | root@debian9:~# docker inspect | + | root@debian11:~# docker inspect |
[ | [ | ||
{ | { | ||
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Ligne 958: | Ligne 1419: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
}, | }, | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Ligne 972: | Ligne 1433: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Ligne 990: | Ligne 1451: | ||
" | " | ||
" | " | ||
+ | " | ||
+ | 59, | ||
+ | 210 | ||
+ | ], | ||
" | " | ||
" | " | ||
+ | " | ||
" | " | ||
" | " | ||
Ligne 997: | Ligne 1463: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1010: | Ligne 1476: | ||
" | " | ||
" | " | ||
- | " | ||
- | 0, | ||
- | 0 | ||
- | ], | ||
" | " | ||
" | " | ||
Ligne 1021: | Ligne 1483: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1033: | Ligne 1495: | ||
" | " | ||
" | " | ||
- | "DiskQuota": | + | "DeviceRequests": |
- | " | + | |
" | " | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1067: | Ligne 1528: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
}, | }, | ||
" | " | ||
Ligne 1076: | Ligne 1537: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1091: | Ligne 1552: | ||
"/ | "/ | ||
], | ], | ||
- | " | ||
" | " | ||
" | " | ||
Ligne 1097: | Ligne 1557: | ||
" | " | ||
" | " | ||
- | " | + | " |
+ | " | ||
+ | " | ||
+ | | ||
}, | }, | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1122: | Ligne 1585: | ||
" | " | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
Ligne 1144: | Ligne 1607: | ||
< | < | ||
- | root@debian9:~# docker run --rm ubuntu env | + | root@debian11:~# docker run --rm ubuntu env |
PATH=/ | PATH=/ | ||
- | HOSTNAME=77bb110031aa | + | HOSTNAME=9b7b7547c023 |
HOME=/root | HOME=/root | ||
- | root@debian9:~# | + | |
+ | root@debian11:~# | ||
</ | </ | ||
Ligne 1156: | Ligne 1620: | ||
< | < | ||
- | 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 1163: | Ligne 1628: | ||
< | < | ||
- | root@debian9:~# docker run --rm --env-file=env.list ubuntu env | + | root@debian11:~# docker run --rm --env-file=env.list ubuntu env |
PATH=/ | PATH=/ | ||
HOSTNAME=ubuntudocker | HOSTNAME=ubuntudocker | ||
EDITOR=vim | EDITOR=vim | ||
HOME=/root | HOME=/root | ||
- | root@debian9:~# | + | |
+ | root@debian11:~# | ||
</ | </ | ||
Ligne 1176: | Ligne 1642: | ||
< | < | ||
- | root@debian9:~# docker run -it --rm -h ubuntudocker ubuntu | + | root@debian11:~# docker run -it --rm -h ubuntudocker ubuntu |
root@ubuntudocker:/# | root@ubuntudocker:/# | ||
ubuntudocker | ubuntudocker | ||
+ | |||
root@ubuntudocker:/# | root@ubuntudocker:/# | ||
exit | exit | ||
- | root@debian9: | ||
</ | </ | ||
Ligne 1189: | Ligne 1656: | ||
< | < | ||
- | root@debian9:~# docker run -it -p 81:80 nginx | + | root@debian11:~# docker run -it -p 81:80 nginx |
Unable to find image ' | Unable to find image ' | ||
latest: Pulling from library/ | latest: Pulling from library/ | ||
- | 27833a3ba0a5: Pull complete | + | 52d2b7f179e3: Pull complete |
- | e83729dd399a: Pull complete | + | fd9f026c6310: Pull complete |
- | ebc6a67df66d: Pull complete | + | 055fa98b4363: |
- | Digest: sha256:c8a861b8a1eeef6d48955a6c6d5dff8e2580f13ff4d0f549e082e7c82a8617a2 | + | 96576293dd29: |
+ | a7c4092be904: | ||
+ | e3b6889c8954: | ||
+ | da761d9a302b: Pull complete | ||
+ | Digest: sha256:104c7c5c54f2685f0f46f3be607ce60da7085da3eaa5ad22d3d9f01594295e9c | ||
Status: Downloaded newer image for nginx: | Status: Downloaded newer image for nginx: | ||
- | ^Croot@debian9:~# | + | |
+ | ^C | ||
+ | |||
+ | root@debian11:~# | ||
</ | </ | ||
Ligne 1203: | Ligne 1677: | ||
< | < | ||
- | ^Croot@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 4f157e179134 | + | 37cb0af1e97f |
- | 04b5ab87539a | + | d838ea83033e |
</ | </ | ||
Ligne 1214: | Ligne 1688: | ||
< | < | ||
- | 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 | + | root@debian11:~# docker ps -a |
- | aabb064d4b0a | + | CONTAINER ID |
- | 4f157e179134 | + | 5c2fe852965f |
- | 04b5ab87539a | + | 37cb0af1e97f |
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1228: | Ligne 1703: | ||
< | < | ||
- | 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' | + | Building dependency tree... Done |
- | Lecture des informations d' | + | 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' | ||
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 | ||
- | 0 mis à jour, 2 nouvellement installés, 0 à enlever et 94 non mis à jour. | + | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. |
- | Il est nécessaire de prendre | + | Need to get 1,844 kB of archives. |
- | Après cette opération, 5 590 ko d' | + | After this operation, 5,768 kB of additional disk space will be used. |
- | Souhaitez-vous continuer | + | Do you want to continue? [Y/n] y |
- | Réception de:1 http:// | + | |
- | Réception de:2 http:// | + | |
- | 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 .../ | + | |
- | 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 .../ | + | |
- | 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: | + | |
</ | </ | ||
Ligne 1260: | Ligne 1723: | ||
< | < | ||
- | root@debian9:~# lynx --dump http:// | + | root@debian11:~# lynx --dump http:// |
| | ||
Ligne 1271: | Ligne 1734: | ||
Thank you for using nginx. | Thank you for using nginx. | ||
- | Références | + | References |
1. http:// | 1. http:// | ||
2. http:// | 2. http:// | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 1282: | Ligne 1747: | ||
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | aabb064d4b0a | + | 5c2fe852965f |
- | 4f157e179134 | + | 37cb0af1e97f |
- | 04b5ab87539a | + | d838ea83033e |
- | root@debian9:~# docker stop aabb | + | ittraining |
- | aabb | + | root@debian11:~# docker stop 5c2f |
- | root@debian9:~# docker ps -a | + | 5c2f |
- | CONTAINER ID IMAGE | + | |
- | aabb064d4b0a | + | root@debian11:~# docker ps -a |
- | 4f157e179134 | + | CONTAINER ID |
- | 04b5ab87539a | + | 5c2fe852965f |
+ | 37cb0af1e97f | ||
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1299: | Ligne 1766: | ||
< | < | ||
- | root@debian9:~# docker start aabb | + | root@debian11:~# docker start 5c2f |
- | aabb | + | 5c2f |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | aabb064d4b0a | + | CONTAINER ID |
- | 4f157e179134 | + | 5c2fe852965f |
- | 04b5ab87539a | + | 37cb0af1e97f |
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1313: | Ligne 1781: | ||
< | < | ||
- | root@debian9:~# docker kill -s 9 aabb | + | root@debian11:~# docker kill -s 9 5c2f |
- | aabb | + | 5c2f |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | aabb064d4b0a | + | CONTAINER ID |
- | 4f157e179134 | + | 5c2fe852965f |
- | 04b5ab87539a | + | 37cb0af1e97f |
+ | d838ea83033e | ||
</ | </ | ||
- | Redémarrez | + | Redémarrez |
< | < | ||
- | root@debian9:~# docker start aabb | + | root@debian11:~# docker start 5c2f |
- | aabb | + | 5c2f |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | aabb064d4b0a | + | CONTAINER ID |
- | 4f157e179134 | + | 5c2fe852965f |
- | 04b5ab87539a | + | 37cb0af1e97f |
- | root@debian9:~# docker restart | + | d838ea83033e |
- | aabb | + | |
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker restart |
- | CONTAINER ID IMAGE | + | 5c2f |
- | aabb064d4b0a | + | |
- | 4f157e179134 | + | root@debian11:~# docker ps -a |
- | 04b5ab87539a | + | CONTAINER ID |
+ | 5c2fe852965f | ||
+ | 37cb0af1e97f | ||
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1346: | Ligne 1818: | ||
< | < | ||
- | root@debian9:~# docker rm aabb | + | root@debian11:~# docker rm 5c2f |
- | Error response from daemon: You cannot remove a running container | + | Error response from daemon: You cannot remove a running container |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | aabb064d4b0a | + | CONTAINER ID |
- | 4f157e179134 | + | 5c2fe852965f |
- | 04b5ab87539a | + | 37cb0af1e97f |
- | root@debian9:~# docker rm -f aabb | + | d838ea83033e |
- | aabb | + | |
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker rm -f 5c2f |
- | CONTAINER ID IMAGE | + | 5c2f |
- | 4f157e179134 | + | |
- | 04b5ab87539a | + | root@debian11:~# docker ps -a |
+ | CONTAINER ID | ||
+ | 37cb0af1e97f | ||
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1366: | Ligne 1841: | ||
< | < | ||
- | 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 |
< | < | ||
< | < | ||
Ligne 1374: | Ligne 1849: | ||
</ | </ | ||
</ | </ | ||
- | root@debian9:~# mv index.html www/ | + | |
+ | root@debian11:~# mv index.html www/ | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 1380: | Ligne 1858: | ||
< | < | ||
- | root@debian9:~# docker run -d -p 81:80 -v / | + | root@debian11:~# docker run -d -p 81:80 -v / |
- | c080793965de8a6a60db212d7e4d96de84b55352c224c054dced75b409e39bf2 | + | 5bec576b4b69b3dbd4cb58305a80d5ac94d42312b486e99dac94f82ba6541e3c |
- | root@debian9:~# lynx --dump http:// | + | |
+ | root@debian11:~# lynx --dump http:// | ||
Accueil du site nginx | Accueil du site nginx | ||
- | + | root@debian11:~# | |
- | root@debian9:~# | + | |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** - Notez ici l' | **Important** - Notez ici l' | ||
</ | </ | ||
Ligne 1398: | Ligne 1876: | ||
< | < | ||
- | root@debian9:~# docker pull centos | + | root@debian11:~# docker pull centos |
Using default tag: latest | Using default tag: latest | ||
latest: Pulling from library/ | latest: Pulling from library/ | ||
- | 8ba884070f61: Pull complete | + | a1d0c7532777: Pull complete |
- | Digest: sha256:8d487d68857f5bc9595793279b33d082b03713341ddec91054382641d14db861 | + | Digest: sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177 |
Status: Downloaded newer image for centos: | Status: Downloaded newer image for centos: | ||
+ | docker.io/ | ||
</ | </ | ||
Ligne 1409: | Ligne 1888: | ||
< | < | ||
- | root@debian9:~# docker run -it centos bash | + | root@debian11:~# docker run -it centos bash |
- | [root@86252a3f00f4 | + | |
- | CentOS Linux release | + | [root@b45b7b136f06 |
- | [root@86252a3f00f4 | + | CentOS Linux release |
- | bind-license-9.9.4-73.el7_6.noarch | + | |
- | bash-4.2.46-31.el7.x86_64 | + | [root@b45b7b136f06 |
- | 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 /]# | ||
</ | </ | ||
Ligne 1460: | Ligne 1962: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
exit | exit | ||
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | 86252a3f00f4 | + | CONTAINER ID |
- | c080793965de | + | b45b7b136f06 |
- | 4f157e179134 | + | 5bec576b4b69 |
- | 04b5ab87539a | + | 37cb0af1e97f |
- | root@debian9:~# docker start 8625 | + | d838ea83033e |
- | 8625 | + | |
- | root@debian9:~# docker attach | + | root@debian11:~# docker start b45b |
- | [root@86252a3f00f4 | + | b45b |
- | anaconda-post.log | + | |
- | [root@86252a3f00f4 | + | root@debian11:~# docker attach |
+ | |||
+ | [root@b45b7b136f06 | ||
+ | bin dev etc home lib lib64 | ||
+ | |||
+ | [root@b45b7b136f06 | ||
</ | </ | ||
Ligne 1481: | Ligne 1988: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
- | [root@86252a3f00f4 | + | |
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
+ | |||
+ | [root@b45b7b136f06 | ||
+ | ... | ||
</ | </ | ||
Ligne 1489: | Ligne 1999: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
- | [root@86252a3f00f4 | + | |
+ | [root@b45b7b136f06 | ||
[mongodb-org-4.2] | [mongodb-org-4.2] | ||
name=MongoDB Repository | name=MongoDB Repository | ||
Ligne 1496: | Ligne 2007: | ||
gpgcheck=1 | gpgcheck=1 | ||
enabled=1 | enabled=1 | ||
- | gpgkey=https:// | + | gpgkey=https:// |
- | [root@86252a3f00f4 /]# | + | name=MongoDB Repository |
+ | baseurl=https:// | ||
+ | gpgcheck=1 | ||
+ | enabled=1 | ||
+ | gpgkey=https:// | ||
</ | </ | ||
Ligne 1503: | Ligne 2018: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
+ | ... | ||
</ | </ | ||
Ligne 1509: | Ligne 2025: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
- | [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, | + | |
+ | [root@b45b7b136f06 /]# about to fork child process, waiting until server is ready for connections. | ||
+ | forked process: 442 | ||
+ | [Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
+ | [root@b45b7b136f06 /]# child process started successfully, | ||
+ | [Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
[1]+ Done mongod --config / | [1]+ Done mongod --config / | ||
- | [root@86252a3f00f4 / | ||
</ | </ | ||
Ligne 1522: | Ligne 2039: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
- | USER | + | USER |
- | root | + | root |
- | root | + | root 442 0.5 0.6 1525168 111704 |
- | root 103 | + | root 475 |
</ | </ | ||
Ligne 1532: | Ligne 2049: | ||
< | < | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
- | MongoDB shell version: 4.2.2 | + | MongoDB shell version |
- | connecting to: test | + | connecting to: mongodb:// |
+ | Implicit session: session { " | ||
+ | MongoDB server version: 4.2.24 | ||
Welcome to the MongoDB shell. | Welcome to the MongoDB shell. | ||
For interactive help, type " | For interactive help, type " | ||
For more comprehensive documentation, | For more comprehensive documentation, | ||
- | http:// | + | https:// |
- | Questions? Try the support group | + | Questions? Try the MongoDB Developer Community Forums |
- | http://groups.google.com/ | + | https://community.mongodb.com |
Server has startup warnings: | Server has startup warnings: | ||
- | 2019-04-09T17:16:26.951+0000 I CONTROL | + | 2023-08-19T13:53:35.327+0000 I |
- | 2019-04-09T17:16:26.951+0000 I CONTROL | + | 2023-08-19T13: |
- | > | + | 2023-08-19T13: |
+ | 2023-08-19T13: | ||
+ | 2023-08-19T13:53:35.327+0000 I CONTROL | ||
+ | 2023-08-19T13: | ||
+ | 2023-08-19T13: | ||
+ | 2023-08-19T13: | ||
+ | 2023-08-19T13: | ||
+ | --- | ||
+ | Enable MongoDB' | ||
+ | metrics about your deployment (disk utilization, | ||
+ | |||
+ | 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() | ||
+ | --- | ||
+ | |||
+ | > | ||
</ | </ | ||
Ligne 1552: | Ligne 2090: | ||
> exit | > exit | ||
bye | bye | ||
- | [root@86252a3f00f4 | + | [root@b45b7b136f06 |
exit | exit | ||
- | root@debian9:~# | + | root@debian11:~# |
</ | </ | ||
Ligne 1562: | Ligne 2100: | ||
< | < | ||
- | root@debian9:~# docker ps -a | + | root@debian11:~# docker ps -a |
- | CONTAINER ID IMAGE | + | CONTAINER ID |
- | 86252a3f00f4 | + | b45b7b136f06 |
- | c080793965de | + | 5bec576b4b69 |
- | 4f157e179134 | + | 37cb0af1e97f |
- | 04b5ab87539a | + | d838ea83033e |
- | root@debian9:~# docker commit | + | |
- | sha256:67afc80e1424a6d99179911ee499f6bf264faf2bc3c7ff4ac4a01ff9c23050a9 | + | root@debian11:~# docker commit |
+ | sha256:0ebd6759e69e3c345087dea3c9743a9d0fad81ca750842f1ff0004cbffabd8ae | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 1575: | Ligne 2116: | ||
< | < | ||
- | root@debian9:~# docker rm 8625 | + | root@debian11:~# docker rm b45b |
- | 8625 | + | b45b |
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | c080793965de | + | CONTAINER ID |
- | 4f157e179134 | + | 5bec576b4b69 |
- | 04b5ab87539a | + | 37cb0af1e97f |
+ | d838ea83033e | ||
</ | </ | ||
Ligne 1587: | Ligne 2129: | ||
< | < | ||
- | root@debian9:~# docker run -it --name mongo i2tch/mongodb | + | root@debian11:~# docker run -it --name mongo ittraining/mongodb |
- | [root@d20fb56a38b0 | + | |
- | / | + | [root@0c597fe7b628 |
- | /usr/bin/mongod | + | / |
- | [root@d20fb56a38b0 | + | |
- | USER | + | [root@0c597fe7b628 |
- | root | + | USER |
- | root | + | root |
+ | root | ||
</ | </ | ||
Ligne 1600: | Ligne 2143: | ||
< | < | ||
- | [root@d20fb56a38b0 | + | [root@0c597fe7b628 |
- | [root@d20fb56a38b0 | + | |
- | . " | + | [root@0c597fe7b628 |
- | fi | + | |
fi | fi | ||
done | done | ||
Ligne 1609: | Ligne 2151: | ||
unset i | unset i | ||
unset -f pathmunge | unset -f pathmunge | ||
+ | fi | ||
+ | |||
fi | fi | ||
# vim: | # vim: | ||
/ | / | ||
+ | |||
+ | [root@0c597fe7b628 /]# | ||
</ | </ | ||
Ligne 1617: | Ligne 2163: | ||
< | < | ||
- | [root@d20fb56a38b0 | + | [root@0c597fe7b628 |
exit | exit | ||
- | root@debian9:~# docker ps -a | + | |
- | CONTAINER ID IMAGE | + | root@debian11:~# docker ps -a |
- | d20fb56a38b0 | + | CONTAINER ID |
- | c080793965de | + | 0c597fe7b628 |
- | 4f157e179134 | + | 5bec576b4b69 |
- | 04b5ab87539a | + | 37cb0af1e97f |
+ | d838ea83033e | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 1630: | Ligne 2179: | ||
< | < | ||
- | root@debian9:~# docker commit | + | root@debian11:~# docker commit |
- | sha256:620057baa411b78a0030e192fdfbde0bb0c5ceae7bdeb115892d9946e542ee07 | + | sha256:3daa95515db6c3f1bd7e30a29c52d3bd5ea14207c05d9401bc2da91d54adbb3f |
</ | </ | ||
Ligne 1637: | Ligne 2186: | ||
< | < | ||
- | root@debian9:~# docker rm d20f | + | root@debian11:~# docker rm 0c59 |
- | d20f | + | 0c59 |
- | root@debian9: | + | |
- | CONTAINER ID IMAGE | + | |
- | c080793965de | + | |
- | 4f157e179134 | + | |
- | 04b5ab87539a | + | |
- | root@debian9: | + | |
- | [root@bcec3f27ed58 /]# about to fork child process, waiting until server is ready for connections. | + | |
- | forked process: 16 | + | |
- | child process started successfully, | + | |
+ | root@debian11: | ||
+ | CONTAINER ID | ||
+ | 5bec576b4b69 | ||
+ | 37cb0af1e97f | ||
+ | d838ea83033e | ||
+ | |||
+ | root@debian11: | ||
+ | about to fork child process, waiting until server is ready for connections. | ||
+ | forked process: 19 | ||
+ | [root@4e8fc8b07afe /]# child process started successfully, | ||
+ | [Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
[1]+ Done / | [1]+ Done / | ||
- | [root@bcec3f27ed58 | + | |
- | USER | + | [root@4e8fc8b07afe |
- | root | + | USER |
- | root | + | root |
- | root | + | root |
- | [root@bcec3f27ed58 | + | root |
+ | |||
+ | [root@4e8fc8b07afe | ||
</ | </ | ||
Ligne 1663: | Ligne 2216: | ||
< | < | ||
- | [root@bcec3f27ed58 | + | [root@4e8fc8b07afe |
- | [root@bcec3f27ed58 | + | |
- | | + | [root@4e8fc8b07afe |
+ | bindIp: 0.0.0.0 | ||
</ | </ | ||
Ligne 1671: | Ligne 2225: | ||
< | < | ||
- | [root@bcec3f27ed58 | + | [root@4e8fc8b07afe |
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: | ||
- | [root@d2ddb4f8ca8a /]# about to fork child process, waiting until server is ready for connections. | ||
- | forked process: 16 | ||
- | [root@d2ddb4f8ca8a /]# child process started successfully, | ||
+ | root@debian11: | ||
+ | about to fork child process, waiting until server is ready for connections. | ||
+ | forked process: 19 | ||
+ | [root@e2ace1b2a6a2 /]# child process started successfully, | ||
+ | [Enter] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||
[1]+ Done / | [1]+ Done / | ||
- | [root@d2ddb4f8ca8a | + | |
+ | [root@e2ace1b2a6a2 | ||
</ | </ | ||
Ligne 1689: | Ligne 2247: | ||
< | < | ||
- | [root@f5b45072b831 | + | [root@e2ace1b2a6a2 |
- | root@debian9: | + | exit |
- | root@debian9:~# apt-get install dirmngr | + | root@debian11:~# |
- | root@debian9: | + | |
- | root@debian9:~# apt-key adv --keyserver hkp:// | + | root@debian11:~# apt-key adv --keyserver hkp:// |
- | Executing: / | + | Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). |
+ | Executing: / | ||
gpg: key 68818C72E52529D4: | gpg: key 68818C72E52529D4: | ||
gpg: Total number processed: 1 | gpg: Total number processed: 1 | ||
gpg: | gpg: | ||
- | root@debian9: | + | |
- | root@debian9:~# echo "deb http:// | + | root@debian11:~# echo " |
- | deb http:// | + | deb [trusted=yes] |
- | root@debian9: | + | |
- | root@debian9:~# apt-get update | + | root@debian11:~# apt-get update |
+ | ... | ||
</ | </ | ||
Ligne 1708: | Ligne 2268: | ||
< | < | ||
- | 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' | + | Building dependency tree... Done |
- | Lecture des informations d' | + | 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' | ||
+ | The following NEW packages will be installed: | ||
mongodb-org-shell | mongodb-org-shell | ||
- | 0 mis à jour, 1 nouvellement installés, 0 à enlever et 95 non mis à jour. | + | 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. |
- | Il est nécessaire de prendre | + | Need to get 9,970 kB of archives. |
- | Après cette opération, 39,8 Mo d' | + | After this operation, 40.3 MB of additional disk space will be used. |
- | Réception de:1 http:// | + | Get:1 http:// |
- | 9 809 ko réceptionnés en 7s (1 245 ko/s) | + | Fetched |
- | Sélection du paquet | + | Selecting previously unselected package |
- | (Lecture de la base de données... 91513 fichiers et répertoires déjà installés.) | + | (Reading database |
- | Préparation du dépaquetage de .../ | + | Preparing to unpack |
- | Dépaquetage de mongodb-org-shell (4.0.8) ... | + | Unpacking |
- | 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) ... |
</ | </ | ||
Ligne 1730: | Ligne 2293: | ||
< | < | ||
- | root@debian9:~# docker inspect mongo | grep IP | + | root@debian11:~# docker inspect mongo | grep IP |
" | " | ||
" | " | ||
Ligne 1751: | Ligne 2314: | ||
< | < | ||
- | 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 | ||
" | " | ||
" | " | ||
Ligne 1769: | Ligne 2333: | ||
" | " | ||
" | " | ||
+ | |||
+ | root@debian11: | ||
</ | </ | ||
Ligne 1774: | Ligne 2340: | ||
< | < | ||
- | 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:// | connecting to: mongodb:// | ||
- | WARNING: No implicit | + | Implicit |
- | Implicit | + | 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 " | For interactive help, type " | ||
For more comprehensive documentation, | For more comprehensive documentation, | ||
- | http:// | + | |
Questions? Try the support group | Questions? Try the support group | ||
- | http:// | + | |
Server has startup warnings: | Server has startup warnings: | ||
- | 2019-04-09T17:31:33.827+0000 I CONTROL | + | 2023-08-19T14:43:49.070+0000 I |
- | 2019-04-09T17:31:33.827+0000 I CONTROL | + | 2023-08-19T14: |
- | > | + | 2023-08-19T14: |
+ | 2023-08-19T14: | ||
+ | 2023-08-19T14:43:49.070+0000 I CONTROL | ||
+ | 2023-08-19T14: | ||
+ | 2023-08-19T14: | ||
+ | 2023-08-19T14: | ||
+ | 2023-08-19T14: | ||
+ | --- | ||
+ | Enable MongoDB' | ||
+ | metrics about your deployment (disk utilization, | ||
+ | |||
+ | 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: | ||
</ | </ | ||
----- | ----- | ||
- | Copyright © 2022 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |