Files
linuxkit/examples/static-ip.yml
Rolf Neugebauer f146003b6e Update kernel to latest 5.4.x
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2021-04-18 21:07:45 +01:00

33 lines
795 B
YAML

kernel:
image: linuxkit/kernel:5.4.113
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:a68f9fa0c1d9dbfc9c23663749a0b7ac510cbe1c
- linuxkit/runc:v0.8
- linuxkit/containerd:1ae8f054e9fe792d1dbdb9a65f1b5e14491cb106
onboot:
- name: ip
image: linuxkit/ip:v0.8
binds:
- /etc/ip:/etc/ip
command: ["ip", "-b", "/etc/ip/eth0.conf"]
services:
- name: getty
image: linuxkit/getty:v0.8
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
trust:
org:
- linuxkit