Files
linuxkit/examples/static-ip.yml
Avi Deitcher 5c2e62d2b9 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-01-15 14:59:47 +02:00

30 lines
873 B
YAML

kernel:
image: linuxkit/kernel:6.6.13
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:30e04e810c9d3d54ab1eb6c2d9407a09d4f2709a
- linuxkit/runc:8b5af3365fc7d015db4e44113d93c7b1f8e2d2ab
- linuxkit/containerd:8072efcee7c1d77a6b41093ae610062552e354fb
onboot:
- name: ip
image: linuxkit/ip:647706ee1ccf1dcb75f9d44e98f5a49ed1101bbc
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:70237b8ac2006b0177026520e7720fc574339298
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