Files
linuxkit/examples/static-ip.yml
Avi Deitcher 45d7ab8fed Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-28 10:57:05 +02:00

30 lines
875 B
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:ad37cb61355b08cf481c54b07612b5206be6254d
- linuxkit/runc:8c00a7c58393f0cfcab81ac4171c00bcaec6b962
- linuxkit/containerd:26f04b0b57e3d21bfb36732b5c6ebe8f08c6705b
onboot:
- name: ip
image: linuxkit/ip:de5c194811236597b3f04bbd992a8d1be9f28685
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:97d0743bc3baa349dc96809b58f8584c5896928a
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