Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher 414b4c5275 Merge pull request #3059 from deitch/motd-namespace-warning
Add services.linuxkit warning to motd for sshd and getty
2018-06-06 17:16:23 +03:00

39 lines
1.0 KiB
YAML

kernel:
image: linuxkit/kernel:4.14.47
cmdline: "console=ttyS0"
init:
- linuxkit/init:a14b7ef6115e6d56fe5bf7c40517b9e190dd4dfb
- linuxkit/runc:v0.4
- linuxkit/containerd:72df922e49a363a4ad53d88cd1a8a3ae4d41086f
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.4
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.7
binds:
- /var/:/host_var:rbind,rshared
capabilities:
- CAP_SYS_ADMIN
rootfsPropagation: shared
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
services:
- name: sshd
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:v0.4
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
trust:
org:
- linuxkit