Files
linuxkit/examples/static-ip.yml
2023-11-16 10:28:22 +02:00

30 lines
875 B
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:aa44b2891ae0273bd194bcf261dc75425713c034
- linuxkit/runc:d02dbf3e72632831246ca9e2bc45772e2c3c02b8
- linuxkit/containerd:4703525398adfe47764efbee8b36af79b4a6b097
onboot:
- name: ip
image: linuxkit/ip:c88e3272e3b12edec454e4720da8bb70a7655bc7
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:4fbbfb7d2e78c8da9be51fc93b78b96685fb1809
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