tutorials: improve theme + use pandoc 2
This commit is contained in:
parent
de21be218a
commit
d25af4fdb2
65 changed files with 1283 additions and 1294 deletions
|
|
@ -1,7 +1,7 @@
|
|||
\newpage
|
||||
|
||||
Une vision plus Clair de la sécurité ?
|
||||
======================================
|
||||
Une vision plus Clair de la sécurité
|
||||
====================================
|
||||
|
||||
Nous avons vu, au travers de tous les précédents TP, que Docker nous apportait
|
||||
un certain degré de sécurité d'emblée au lancement du conteneur. Cela peut sans
|
||||
|
|
@ -86,9 +86,9 @@ Une fois lancé, la base nécessite d'être initialisée. L'opération peut pren
|
|||
plusieurs minutes. Vous pouvez suivre l'avancement de l'ajout :
|
||||
|
||||
<div lang="en-US">
|
||||
```shell
|
||||
curl http://localhost:6060/v1/namespaces
|
||||
curl http://localhost:6060/v1/namespaces/debian:9/vulnerabilities?limit=10
|
||||
```bash
|
||||
curl http://localhost:6060/v1/namespaces
|
||||
curl http://localhost:6060/v1/namespaces/debian:9/vulnerabilities?limit=10
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
@ -100,8 +100,8 @@ conteneur, nous allons utiliser le programme
|
|||
[`paclair`](https://github.com/yebinama/paclair) :
|
||||
|
||||
<div lang="en-US">
|
||||
```shell
|
||||
pip3 install paclair
|
||||
```bash
|
||||
pip3 install paclair
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
@ -109,11 +109,11 @@ Il nécessite un fichier de configuration pour être utilisé, essayez :
|
|||
|
||||
<div lang="en-US">
|
||||
```yml
|
||||
General:
|
||||
clair_url: 'http://localhost:6060'
|
||||
Plugins:
|
||||
Docker:
|
||||
class: paclair.plugins.docker_plugin.DockerPlugin
|
||||
General:
|
||||
clair_url: 'http://localhost:6060'
|
||||
Plugins:
|
||||
Docker:
|
||||
class: paclair.plugins.docker_plugin.DockerPlugin
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
@ -121,33 +121,33 @@ Pour obtenir un rapport d'analyse, on commence par envoyer les couches de
|
|||
l'image à `Clair` :
|
||||
|
||||
<div lang="en-US">
|
||||
```shell
|
||||
paclair --conf conf.yml Docker nemunaire/fic-admin push
|
||||
```bash
|
||||
paclair --conf conf.yml Docker nemunaire/fic-admin push
|
||||
```
|
||||
</div>
|
||||
|
||||
Puis on lui demande la génération d'un rapport `html` :
|
||||
|
||||
<div lang="en-US">
|
||||
```shell
|
||||
paclair --conf conf.yml Docker nemunaire/fic-admin analyse --output-format html --output-report file
|
||||
```bash
|
||||
paclair --conf conf.yml Docker nemunaire/fic-admin analyse --output-format html --output-report file
|
||||
```
|
||||
</div>
|
||||
|
||||
Si l'on souhaite uniquement avoir des statistiques dans la console :
|
||||
|
||||
<div lang="en-US">
|
||||
```shell
|
||||
42sh$ paclair --conf conf.yml Docker node:latest analyse --output-format stats
|
||||
Unknown: 2
|
||||
Negligible: 1
|
||||
Medium: 5
|
||||
High: 4
|
||||
```bash
|
||||
42sh$ paclair --conf conf.yml Docker node:latest analyse --output-format stats
|
||||
Unknown: 2
|
||||
Negligible: 1
|
||||
Medium: 5
|
||||
High: 4
|
||||
```
|
||||
</div>
|
||||
|
||||
|
||||
## Exercice {.unnumbered}
|
||||
## Exercice {-}
|
||||
|
||||
Déterminez le nombre de vulnérabilités dans les principales images officielles
|
||||
du [Docker Hub](https://hub.docker.com/explore), notamment `nginx`, `golang`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue