mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-02-22 01:19:56 +00:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:6.12.59
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:b5506cc74a6812dc40982cacfd2f4328f8a4b12a
|
|
- linuxkit/runc:9442aa234715e751a16144f1d4ae3fd1a00fd492
|
|
- linuxkit/containerd:ba19f64efd3331a8fd0a33e00eabd14f6ee1780e
|
|
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
|