mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-04 11:25:33 +00:00
30 lines
874 B
YAML
30 lines
874 B
YAML
kernel:
|
|
image: linuxkit/kernel:6.12.52
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:b92210bd04aa29344d70fd2d259e2ae3c7903ec4
|
|
- linuxkit/runc:98ddef9b5b87cb44783566ed2a86cea95439a631
|
|
- linuxkit/containerd:22578becf270fe4bbb82e29f2539f71613e0b4fc
|
|
onboot:
|
|
- name: ip
|
|
image: linuxkit/ip:3c0676ee83a0dc739685be1253b8326f08581ef7
|
|
binds:
|
|
- /etc/ip:/etc/ip
|
|
command: ["ip", "-b", "/etc/ip/eth0.conf"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:a86d74c8f89be8956330c3b115b0b1f2e09ef6e0
|
|
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
|