mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 17:06:35 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.54
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
|
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
|
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
|
- 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:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
|
- name: getty
|
|
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
|
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'
|