Files
linuxkit/test/pkg/ns/template.yml
Ilya Dmitrichenko 86fb6ba0aa pkg/init: Mount /sys/fs/bpf
NOTE: This will be a shared mount, due to root being turned into a
shared with `MC_REC` set: `mount("", "/", "", rec|shared, "")`.
For some reason setting `shared` when mounting `/sys/fs/bpf` doesn't
work at all, perhaps that's just a kernel feature.

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
2020-05-06 11:06:54 +01:00

22 lines
678 B
YAML

# Sample YAML file for manual testing
kernel:
image: linuxkit/kernel:5.4.30
cmdline: "console=ttyS0"
init:
- linuxkit/init:e93b0bf37b030238d33e04b98e90d087637f3d2c
- linuxkit/runc:f79954950022fea76b8b6f10de58cb48e4fb3878
onboot:
- name: test-ns
image: linuxkit/test-ns:<hash>
command: ["/bin/sh", "/runp-runc-net.sh", "mix-unix"]
# command: ["/bin/sh", "/runc-net.sh", "-l", "5", "-i", "2", "-c", "5", "-p", "unix", "-ip", "6"]
mounts: # for runc
- type: cgroup
options: ["rw"]
- name: poweroff
image: linuxkit/poweroff:06dd4e46c62fbe79123a028835c921f80e4855d3
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
org:
- linuxkit