mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-01 05:56:41 +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:817099ace2d56ea2d20c7702ab8e1a8abc7d89fd
|
|
- linuxkit/runc:59c40661f2174ca6752d73086b91d63eeb98d021
|
|
- linuxkit/containerd:0dab9a4e2b9aa7f034873881a08890fd40b2755d
|
|
onboot:
|
|
- name: ip
|
|
image: linuxkit/ip:bc8772ad4a77269d131a7baeb77d867ef7ab3c9f
|
|
binds:
|
|
- /etc/ip:/etc/ip
|
|
command: ["ip", "-b", "/etc/ip/eth0.conf"]
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:9b8e6b510b49da196a1e412aa95f364e3dd16576
|
|
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
|