mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-24 12:23:23 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.65
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:42a92119e1ca10380e0d33e26c0cbcf85b9b3558
|
|
- linuxkit/runc:1b0741d07949c0acc444cd6a04ee7f833443579d
|
|
- linuxkit/containerd:bfb61cc1d26c39cd4b2bc08f7a9963fefa0ef3bf
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:48831507404049660b960e4055f544917d90378e
|
|
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:b7f21ef1b13300a994e35eac3644e4f84f0ada8a
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:c7e61d9250de0b21455dc5c8bb885bd8faa31621
|
|
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
|