Files
linuxkit/projects/miragesdk/examples/mirage-dhcp.yml
Justin Cormack 07469ac60b Merge pull request #2207 from justincormack/getty-x
remove -x from getty script
2017-07-15 12:38:52 +01:00

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:4a35484aa6f90a1f06cdf1fb36f7056926a084b9
- 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:deb9332e786e72591bd9be200bcc9c7a534eb754
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'