mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-16 13:26:22 +00:00
30 lines
874 B
YAML
30 lines
874 B
YAML
kernel:
|
|
image: linuxkit/kernel:5.10.76
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:eb597ef74d808b5320ad1060b1620a6ac31e7ced
|
|
- linuxkit/runc:21dbbda709ae138de0af6b0c7e4ae49525db5e88
|
|
- linuxkit/containerd:2f0907913dd54ab5186006034eb224a0da12443e
|
|
onboot:
|
|
- name: ip
|
|
image: linuxkit/ip:6cc44dd4e18ddb02de01bc4b34b5799971b6a7bf
|
|
binds:
|
|
- /etc/ip:/etc/ip
|
|
command: ["ip", "-b", "/etc/ip/eth0.conf"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:3c6e89681a988c3d4e2610fcd7aaaa0247ded3ec
|
|
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
|