tuto 2022 5, 6
This commit is contained in:
parent
3d7c03fbbd
commit
2af52619c7
43 changed files with 1073 additions and 431 deletions
|
@ -41,19 +41,19 @@ L'image la plus simple que l'on puisse réaliser pourrait être :
|
|||
<div lang="en-US">
|
||||
```yaml
|
||||
kernel:
|
||||
image: linuxkit/kernel:4.14.80
|
||||
image: linuxkit/kernel:5.10.76
|
||||
cmdline: "console=tty0 console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:c563953a2277eb73a89d89f70e4b6dcdcfebc2d1
|
||||
- linuxkit/runc:83d0edb4552b1a5df1f0976f05f442829eac38fe
|
||||
- linuxkit/containerd:326b096cd5fbab0f864e52721d036cade67599d6
|
||||
- linuxkit/init:eb597ef74d808b5320ad1060b1620a6ac31e7ced
|
||||
- linuxkit/runc:21dbbda709ae138de0af6b0c7e4ae49525db5e88
|
||||
- linuxkit/containerd:2f0907913dd54ab5186006034eb224a0da12443e
|
||||
onboot:
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:v0.6
|
||||
image: linuxkit/dhcpcd:v0.8
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:2eb742cd7a68e14cf50577c02f30147bc406e478
|
||||
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
||||
env:
|
||||
- INSECURE=true
|
||||
trust:
|
||||
|
@ -91,7 +91,7 @@ Il reste possible de se dissocier également de ces namespaces, en précisant :
|
|||
<div lang="en-US">
|
||||
```yaml
|
||||
- name: getty
|
||||
image: linuxkit/getty:2eb742cd7a68e14cf50577c02f30147bc406e478
|
||||
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
||||
net: new
|
||||
```
|
||||
</div>
|
||||
|
@ -101,7 +101,7 @@ Ou inversement, pour persister dans le namespace initial :
|
|||
<div lang="en-US">
|
||||
```yaml
|
||||
- name: getty
|
||||
image: linuxkit/getty:2eb742cd7a68e14cf50577c02f30147bc406e478
|
||||
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
||||
pid: host
|
||||
```
|
||||
</div>
|
||||
|
@ -118,7 +118,7 @@ On commence donc d'abord par créer le nouveau *namespace*, en prenant soin de
|
|||
<div lang="en-US">
|
||||
```yaml
|
||||
- name: getty
|
||||
image: linuxkit/getty:2eb742cd7a68e14cf50577c02f30147bc406e478
|
||||
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
||||
net: new
|
||||
runtime:
|
||||
bindNS: /run/netns/mynewnetns
|
||||
|
@ -132,7 +132,7 @@ réutiliser plus tard ce chemin, en remplacement du mot clef `new` :
|
|||
<div lang="en-US">
|
||||
```yaml
|
||||
- name: xxxx
|
||||
image: linuxkit/xxxx:v0.6
|
||||
image: linuxkit/xxxx:v0.8
|
||||
net: /run/netns/mynewnetns
|
||||
```
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue