Files
linuxkit/examples/vpnkit-forwarder.yml
Justin Cormack f8a0b332f2 Update hashes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-07-14 11:08:50 +01:00

47 lines
1.5 KiB
YAML

kernel:
image: linuxkit/kernel:4.9.36
cmdline: "console=ttyS0"
init:
- linuxkit/init:a626edd428b575d10b994be0d4c5b034838e9946
- linuxkit/runc:f5b28379fc969237e0fb11aa1ed946622150e9a0
- linuxkit/containerd:f1f9c27e153b510e09b2e3f221181f87ade0fe1a
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:4b7b8bb024cebb1bbb9c8026d44d7cbc8e202c41
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.6
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:89b2e91d7d1bf2f40220be0e3ed586e74746cceb
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:9c1545e7b093d1210118de7661d7346393ec195b
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
- name: vpnkit-expose-port
image: linuxkit/vpnkit-forwarder:9c1545e7b093d1210118de7661d7346393ec195b
net: none
binds:
- /var/vpnkit:/port
command: ["/vpnkit-expose-port","-i",
"-host-ip","127.0.0.1","-host-port","22",
"-container-ip","127.0.0.1","-container-port","22","-no-local-ip"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
trust:
org:
- linuxkit