Files
linuxkit/examples/static-ip.yml
David Scott f14ad44ce4 update shas for pkg/init
Signed-off-by: David Scott <dave@recoil.org>
2022-03-13 19:57:25 +00:00

30 lines
874 B
YAML

kernel:
image: linuxkit/kernel:5.10.92
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:cc3132885af876a247bc99199b4cc788f3173896
- linuxkit/runc:9f7aad4eb5e4360cc9ed8778a5c501cce6e21601
- linuxkit/containerd:2f0907913dd54ab5186006034eb224a0da12443e
onboot:
- name: ip
image: linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:76951a596aa5e0867a38e28f0b94d620e948e3e8
env:
- INSECURE=true
files:
- path: etc/ip/eth0.conf
contents: |
address add 10.10.1.225/24 dev eth0
link set eth0 up
route add default via 10.10.1.100 dev eth0
- path: etc/resolv.conf
contents: |
# domain test.local
nameserver 10.10.1.101
nameserver 10.10.1.100