mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 19:01:29 +00:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.36
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:a626edd428b575d10b994be0d4c5b034838e9946
|
|
- linuxkit/runc:f5b28379fc969237e0fb11aa1ed946622150e9a0
|
|
- linuxkit/containerd:f1f9c27e153b510e09b2e3f221181f87ade0fe1a
|
|
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:5ab31289889d61a5d2ecbeea8e36ce74ac54737c
|
|
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'
|