Files
linuxkit/examples/static-ip.yml
David Scott e8f8a409e8 Update hashes for pkg/init
Signed-off-by: David Scott <dave@recoil.org>
2021-10-26 19:52:22 +01:00

30 lines
874 B
YAML

kernel:
image: linuxkit/kernel:5.10.47
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:43c52456571369d62882605e4d510f0df3ed93de
- linuxkit/runc:5f9941eed05f58293f928c9f2f0b6a3f9f6f55c1
- linuxkit/containerd:b991571dd383351dbb2873f9ae3b70475adb6816
onboot:
- name: ip
image: linuxkit/ip:b98c32fab9c8997c5d05677af979f05dfcd8b3f1
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:ebe3397aa9b08e8f310121fdb0aac9406e1c8e73
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