mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-30 02:09:19 +00:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.19.51
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:1a0c6b624708b5a9e58b9a608a9ce3164e7b2908
|
|
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
|
|
- linuxkit/containerd:2e7e59b8af98a1cec834dc9fe7aba271bf4b0a41
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:v0.7
|
|
- name: dhcp-client
|
|
image: miragesdk/dhcp-client:22aa9d527820534295a8cd59901c0c5197af6585
|
|
net: host
|
|
capabilities:
|
|
- CAP_NET_ADMIN # to bring eth0 up
|
|
- CAP_NET_RAW # to read /dev/eth0
|
|
- CAP_SYS_ADMIN # for runc (unshare)
|
|
- CAP_SETGID # for runc (setns)
|
|
mounts: # for runc
|
|
- type: cgroup
|
|
options: ["rw","nosuid","noexec","nodev","relatime"]
|
|
binds:
|
|
- /var/run/dhcp-client:/data
|
|
- /usr/bin/runc:/usr/bin/runc # for runc
|
|
- /run/runc:/run/runc # for runc
|
|
- /sbin:/sbin # for ifconfig
|
|
- /bin:/bin # for ifconfig
|
|
- /lib:/lib # for ifconfig
|
|
services:
|
|
- name: sshd
|
|
image: linuxkit/sshd:v0.7
|
|
- name: getty
|
|
image: linuxkit/getty:v0.7
|
|
env:
|
|
- INSECURE=true
|
|
files:
|
|
- path: var/run/dhcp-client/README
|
|
contents: 'data for dhcp-client'
|
|
- path: root/.ssh/authorized_keys
|
|
contents: '#your SSH key here'
|