Files
linuxkit/examples/vpnkit-forwarder.yml
Ian Campbell a2d3be0e6f Update runc and containerd
pull in newer containerd v1.0.0-alpha0 via updated alpine base, update runc to
429a5387123625040bacfbb60d96b1cbd02293ab which is vendored by that version of
containerd (and also update alpine base for runc)

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2017-07-13 10:37:15 +01:00

47 lines
1.5 KiB
YAML

kernel:
image: linuxkit/kernel:4.9.36
cmdline: "console=ttyS0"
init:
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
- linuxkit/runc:a0f2894e50bacbd1ff82be41edff8b8e06e0b161
- linuxkit/containerd:d08e5f12f1ce609fcc8ee6817bb422ff03f09122
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