mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 00:11:49 +00:00
30 lines
875 B
YAML
30 lines
875 B
YAML
kernel:
|
|
image: linuxkit/kernel:5.10.104
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:07d37c3ae7fad5ddcb54c8dc65774ae050851f04
|
|
- linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80
|
|
- linuxkit/containerd:95d5f0d2d8dc63bd87e96b7b39cf026cb86125c9
|
|
onboot:
|
|
- name: ip
|
|
image: linuxkit/ip:c88e3272e3b12edec454e4720da8bb70a7655bc7
|
|
binds:
|
|
- /etc/ip:/etc/ip
|
|
command: ["ip", "-b", "/etc/ip/eth0.conf"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:e74e6cad132403d1a6d6cd25b136a7c69c99f3f7
|
|
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
|