mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-14 17:51:39 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.39
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:a19363d2546205d4613a52371414f79c06d7070e
|
|
- linuxkit/runc:d5cbeb95bdafedb82ad2cf11cff1a5da7fcae630
|
|
- linuxkit/containerd:e33e0534d6fca88e1eb86897a1ea410b4a5d722e
|
|
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:dc98a72c1d1285c30f2db176252f3ce2bf645d5b
|
|
- name: getty
|
|
image: linuxkit/getty:97c5e2c8ebad23c2ed743366b475b5c15c42f70e
|
|
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'
|