mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 18:08:59 +00:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:6.12.52
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:26e546e4ef2669bd44d8c46e3164eb5ba7ae1a5c
|
|
- linuxkit/runc:98ddef9b5b87cb44783566ed2a86cea95439a631
|
|
- linuxkit/containerd:22578becf270fe4bbb82e29f2539f71613e0b4fc
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:b87e9ececac55a65eaa592f4dd8b4e0c3009afdb
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: mount-vpnkit
|
|
image: alpine:3.13
|
|
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:08e5d4a46603eff485d5d1b14001cc932a530858
|
|
binds.add:
|
|
- /root/.ssh:/root/.ssh
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:d0bc6500a9dc97b4556bb4bda20160a294cc61a3
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
|
|
files:
|
|
- path: root/.ssh/authorized_keys
|
|
source: ~/.ssh/id_rsa.pub
|
|
mode: "0600"
|
|
optional: true
|