Files
linuxkit/examples/static-ip.yml
Avi Deitcher 6b5be65a33 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-27 22:28:11 +02:00

30 lines
875 B
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:31dcd928602e39ee752843ebcf6c35cbae73c883
- linuxkit/runc:7ecf2e5253905855fb554b072d42903f7829c8b6
- linuxkit/containerd:f645aa2f8aa58023149d7766725039572a2ebeb5
onboot:
- name: ip
image: linuxkit/ip:aa7f256293cf69c3b557fa6e0a8c382cdfe7809a
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:ccac1189f78ff466b76d097a0b7b7236ea54de84
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