Files
linuxkit/examples/vpnkit-forwarder.yml
Ian Campbell 1dfe16e570 Bump yml to pickup containerd v1.1.2
Signed-off-by: Ian Campbell <ijc@docker.com>
2018-07-16 10:57:37 +01:00

39 lines
1021 B
YAML

kernel:
image: linuxkit/kernel:4.14.55
cmdline: "console=ttyS0"
init:
- linuxkit/init:598439400c1e4bf8c25c63c98b2d3e83b1382be9
- linuxkit/runc:v0.5
- linuxkit/containerd:0784cc754edb296b996c3510abbdf69686ef0f24
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.5
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.8
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:v0.5
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:v0.5
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