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:en:dre06 [2023/12/17 18:43] – admin | elearning:workbooks:docker3:en:dre06 [2024/12/17 13:46] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2023.01** | + | Version : **2024.01** |
Last update : ~~LASTMOD~~ | Last update : ~~LASTMOD~~ | ||
+ | |||
======DOF607 - Docker Security Management====== | ======DOF607 - Docker Security Management====== | ||
Ligne 557: | Ligne 558: | ||
</ | </ | ||
- | Exécute | + | Execute |
< | < | ||
Ligne 582: | Ligne 583: | ||
< | < | ||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
## First rule - delete all | ## First rule - delete all | ||
Ligne 753: | Ligne 755: | ||
< | < | ||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
{ | { | ||
Ligne 1309: | Ligne 1312: | ||
< | < | ||
root@manager: | root@manager: | ||
- | REPOSITORY TAG IMAGE ID CREATED SIZE | + | REPOSITORY |
- | ubuntu latest 775349758637 9 days ago 64.2MB | + | ubuntu |
- | nginx latest 540a289bab6c 2 weeks ago 126MB | + | nginx |
- | alpine latest 965ea09ff2eb 2 weeks ago 5.55MB | + | alpine |
- | mysql latest c8ee894bd2bd 3 weeks ago 456MB | + | mysql |
- | centos latest 0f3e07c0138f 5 weeks ago 220MB | + | centos |
</ | </ | ||
Ligne 1339: | Ligne 1342: | ||
root@manager: | root@manager: | ||
- | REPOSITORY TAG IMAGE ID CREATED SIZE | + | REPOSITORY |
- | ubuntu latest 775349758637 9 days ago 64.2MB | + | ubuntu |
- | nginx latest 540a289bab6c 2 weeks ago 126MB | + | nginx |
- | alpine latest 965ea09ff2eb 2 weeks ago 5.55MB | + | alpine |
- | mysql latest c8ee894bd2bd 3 weeks ago 456MB | + | mysql |
- | centos latest 0f3e07c0138f 5 weeks ago 220MB | + | centos |
- | i2tch/ | + | i2tch/ |
root@manager: | root@manager: | ||
Ligne 1383: | Ligne 1386: | ||
< | < | ||
root@manager: | root@manager: | ||
- | REPOSITORY TAG IMAGE ID CREATED SIZE | + | REPOSITORY |
- | ubuntu latest 775349758637 9 days ago 64.2MB | + | ubuntu |
- | nginx latest 540a289bab6c 2 weeks ago 126MB | + | nginx latest |
- | <your_account>/docker alpine 965ea09ff2eb 2 weeks ago 5.55MB | + | <votre_compte>/ |
- | alpine latest 965ea09ff2eb 2 weeks ago 5.55MB | + | alpine |
- | mysql latest c8ee894bd2bd 3 weeks ago 456MB | + | mysql latest |
- | centos latest 0f3e07c0138f 5 weeks ago 220MB | + | centos |
</ | </ | ||
Ligne 1461: | Ligne 1464: | ||
< | < | ||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
FROM docker/ | FROM docker/ | ||
Ligne 1522: | Ligne 1528: | ||
< | < | ||
root@manager: | root@manager: | ||
+ | |||
root@manager: | root@manager: | ||
- | REPOSITORY TAG IMAGE ID CREATED SIZE | + | REPOSITORY |
- | <your_account>/docker nottrusted 686e85ee76b8 9 minutes ago 5.03MB | + | <votre_compte>/ |
- | <your_account>/ | + | <votre_compte>/ |
- | ubuntu latest 775349758637 9 days ago 64.2MB | + | ubuntu |
- | nginx latest 540a289bab6c 2 weeks ago 126MB | + | nginx latest |
- | <your_account>/docker alpine 965ea09ff2eb 2 weeks ago 5.55MB | + | <votre_compte>/ |
- | alpine latest 965ea09ff2eb 2 weeks ago 5.55MB | + | alpine |
- | mysql latest c8ee894bd2bd 3 weeks ago 456MB | + | mysql latest |
- | centos latest 0f3e07c0138f 5 weeks ago 220MB | + | centos |
- | docker/ | + | docker/ |
root@manager: | root@manager: | ||
Ligne 1715: | Ligne 1722: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important**: | **Important**: | ||
</ | </ | ||
Ligne 1834: | Ligne 1841: | ||
</ | </ | ||
- | Modify the entry for address 10.0.2.61 in the manager' | + | Modify the entry for address 10.0.2.45 in the manager' |
< | < | ||
Ligne 1840: | Ligne 1847: | ||
root@manager: | root@manager: | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
- | 10.0.2.60 debian9.i2tch.loc | + | 10.0.2.46 debian11.i2tch.loc |
- | 10.0.2.61 myregistry.i2tch.loc myregistry | + | 10.0.2.45 myregistry.i2tch.loc myregistry |
10.0.2.62 manager.i2tch.loc manager | 10.0.2.62 manager.i2tch.loc manager | ||
10.0.2.63 worker1.i2tch.loc worker1 | 10.0.2.63 worker1.i2tch.loc worker1 | ||
Ligne 1998: | Ligne 2005: | ||
====9.5 - Client configuration==== | ====9.5 - Client configuration==== | ||
- | Then transfer the CA certificate and the client certificate and private key to the **debian91** VM : | + | Then transfer the CA certificate and the client certificate and private key to the **10.0.2.45** VM : |
< | < | ||
- | root@manager: | + | root@manager: |
- | The authenticity of host ' | + | The authenticity of host ' |
ECDSA key fingerprint is SHA256: | ECDSA key fingerprint is SHA256: | ||
Are you sure you want to continue connecting (yes/no)? yes | Are you sure you want to continue connecting (yes/no)? yes | ||
- | Warning: Permanently added ' | + | Warning: Permanently added ' |
- | trainee@10.0.2.61's password: | + | trainee@10.0.2.45's password: |
- | ca.pem 100% 2163 917.8KB/s 00:00 | + | ca.pem |
- | key.pem 100% 3243 3.0MB/s 00:00 | + | key.pem |
- | cert.pem 100% 1907 921.7KB/s 00:00 | + | cert.pem |
</ | </ | ||
- | Run the **docker version** command on the **debian91** VM: | + | Run the **docker version** command on the **10.0.2.45** VM: |
< | < | ||
trainee@myregistry: | trainee@myregistry: | ||
Client: Docker Engine - Community | Client: Docker Engine - Community | ||
- | | + | |
- | API version: 1.40 | + | API version: |
- | Go version: go1.12.10 | + | Go version: |
Git commit: | Git commit: | ||
| | ||
- | | + | |
- | | + | |
Server: Docker Engine - Community | Server: Docker Engine - Community | ||
| | ||
- | Version: 19.03.4 | + | Version: |
- | API version: 1.40 (minimum version 1.12) | + | API version: |
- | Go version: go1.12.10 | + | Go version: |
Git commit: | Git commit: | ||
Built: | Built: | ||
- | OS/Arch: linux/ | + | OS/ |
- | Experimental: | + | Experimental: |
| | ||
- | Version: 1.2.10 | + | Version: |
- | GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339 | + | GitCommit: |
runc: | runc: | ||
- | Version: 1.0.0-rc8+dev | + | Version: |
GitCommit: | GitCommit: | ||
| | ||
- | Version: 0.18.0 | + | Version: |
- | GitCommit: fec3683 | + | GitCommit: |
</ | </ | ||
Ligne 2071: | Ligne 2078: | ||
< | < | ||
trainee@myregistry: | trainee@myregistry: | ||
- | REPOSITORY TAG IMAGE ID CREATED SIZE | + | REPOSITORY |
- | i2tch/ | + | i2tch/ |
- | i2tch/ | + | i2tch/ |
- | ubuntu latest 775349758637 10 days ago 64.2MB | + | ubuntu |
- | nginx latest 540a289bab6c 2 weeks ago 126MB | + | nginx |
- | alpine latest 965ea09ff2eb 2 weeks ago 5.55MB | + | alpine |
- | i2tch/ | + | i2tch/ |
- | mysql latest c8ee894bd2bd 3 weeks ago 456MB | + | mysql |
- | centos latest 0f3e07c0138f 5 weeks ago 220MB | + | centos |
- | docker/ | + | docker/ |
</ | </ | ||
----- | ----- | ||
- | Copyright © 2023 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |