mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-12 21:04:29 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.38
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:d049e7b2074da5cd699a27defb47eb101142455d
|
|
- linuxkit/runc:d5cbeb95bdafedb82ad2cf11cff1a5da7fcae630
|
|
- linuxkit/containerd:b6ffbb669248e3369081a6c4427026aa968a2385
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:d1a43c7c91e92374766f962dc8534cf9508756b0
|
|
- 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:89b2e91d7d1bf2f40220be0e3ed586e74746cceb
|
|
- name: getty
|
|
image: linuxkit/getty:0a2955f3d7a10a0e71972791c3ba6400118f327e
|
|
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'
|