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:docker2:drf02 [2021/04/14 14:02] – admin | elearning:workbooks:docker2:drf02 [2022/04/29 07:57] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2021.01** | + | Version : **2022.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
Ligne 728: | Ligne 728: | ||
| Trainee29 | http:// | | Trainee29 | http:// | ||
- | Dans la boîte de connexion d' | + | Dans la boîte de connexion d' |
Cliquez sur la connexion **TraineeXX_VNC** et testez ensuite votre application en utilisant le navigateur web de la machine virtuelle. | Cliquez sur la connexion **TraineeXX_VNC** et testez ensuite votre application en utilisant le navigateur web de la machine virtuelle. | ||
Ligne 757: | Ligne 757: | ||
docker swarm join --token SWMTKN-1-23d7n1fkkk9rvlhty106q9390bfpf9daljjguq3s807le6c5qs-e0s1yqsajvmi7s8t9l9mw48ao 10.0.2.62: | docker swarm join --token SWMTKN-1-23d7n1fkkk9rvlhty106q9390bfpf9daljjguq3s807le6c5qs-e0s1yqsajvmi7s8t9l9mw48ao 10.0.2.62: | ||
- | |||
- | To add a manager to this swarm, run ' | ||
- | root@manager: | ||
- | trainee@manager: | ||
- | </ | ||
- | |||
- | ou | ||
- | |||
- | < | ||
- | trainee@traineeXX: | ||
- | ... | ||
- | root@manager: | ||
- | Node left the swarm. | ||
- | root@manager: | ||
- | Swarm initialized: | ||
- | |||
- | To add a worker to this swarm, run the following command: | ||
- | |||
- | docker swarm join --token SWMTKN-1-23d7n1fkkk9rvlhty106q9390bfpf9daljjguq3s807le6c5qs-e0s1yqsajvmi7s8t9l9mw48ao 10.0.2.42: | ||
To add a manager to this swarm, run ' | To add a manager to this swarm, run ' | ||
Ligne 790: | Ligne 771: | ||
Node left the swarm. | Node left the swarm. | ||
root@worker1: | root@worker1: | ||
- | This node joined a swarm as a worker. | ||
- | root@worker1: | ||
- | trainee@worker1: | ||
- | </ | ||
- | |||
- | ou | ||
- | |||
- | < | ||
- | trainee@traineeXX: | ||
- | ... | ||
- | root@worker1: | ||
- | Node left the swarm. | ||
- | root@worker1: | ||
This node joined a swarm as a worker. | This node joined a swarm as a worker. | ||
root@worker1: | root@worker1: | ||
Ligne 816: | Ligne 784: | ||
Node left the swarm. | Node left the swarm. | ||
root@worker2: | root@worker2: | ||
- | This node joined a swarm as a worker. | ||
- | root@worker2: | ||
- | trainee@worker2: | ||
- | </ | ||
- | |||
- | ou : | ||
- | |||
- | < | ||
- | trainee@traineeXX: | ||
- | ... | ||
- | root@worker2: | ||
- | Node left the swarm. | ||
- | root@worker2: | ||
This node joined a swarm as a worker. | This node joined a swarm as a worker. | ||
root@worker2: | root@worker2: | ||
Ligne 838: | Ligne 793: | ||
< | < | ||
trainee@traineeXX: | trainee@traineeXX: | ||
- | ... | ||
- | root@manager: | ||
- | ID HOSTNAME | ||
- | b85hxlixbr1mh1txd1hrfe4us * | ||
- | 4sui75vvdhmet4qvt0zbvzlzl | ||
- | lbjtg5o9kw3x6xg7frm07jfuw | ||
- | root@manager: | ||
- | ID HOSTNAME | ||
- | b85hxlixbr1mh1txd1hrfe4us * | ||
- | root@manager: | ||
- | ID HOSTNAME | ||
- | 4sui75vvdhmet4qvt0zbvzlzl | ||
- | lbjtg5o9kw3x6xg7frm07jfuw | ||
- | </ | ||
- | |||
- | ou : | ||
- | |||
- | < | ||
- | trainee@traineeXX: | ||
... | ... | ||
root@manager: | root@manager: | ||
Ligne 2046: | Ligne 1982: | ||
La clef **deploy** permet de spécifier des options lors du déploiement du service : | La clef **deploy** permet de spécifier des options lors du déploiement du service : | ||
- | * **mode** - Il existe deux types de services. **Replicated** où on spécifie le nombre d' | + | * **mode** - Il existe deux types de services. **Replicated** où on spécifie le nombre d' |
+ | |||
+ | {{ : | ||
* **replicas** - spécifie le nombre de replicas | * **replicas** - spécifie le nombre de replicas | ||
* **restart_policy** spécifie ce qui se passe en cas d' | * **restart_policy** spécifie ce qui se passe en cas d' | ||
Ligne 2095: | Ligne 2034: | ||
</ | </ | ||
- | Retournez à la fenêtre d' | + | Retournez à la fenêtre d' |
{{ : | {{ : | ||
Ligne 2391: | Ligne 2330: | ||
----- | ----- | ||
- | < | + | |
- | <div align=" | + | Copyright © 2022 Hugh Norris. |
- | Copyright © 2021 Hugh NORRIS | + | |
- | </ | + | |
- | </ | + |