mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 18:25:59 +00:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:6.6.13
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:30e04e810c9d3d54ab1eb6c2d9407a09d4f2709a
|
|
- linuxkit/runc:8b5af3365fc7d015db4e44113d93c7b1f8e2d2ab
|
|
- linuxkit/containerd:8072efcee7c1d77a6b41093ae610062552e354fb
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:f46134c05f9665d8865a9fbebd5be0995057af28
|
|
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:db2374b91531e9fa1ebf63aeccb3963bee2aa771
|
|
binds.add:
|
|
- /root/.ssh:/root/.ssh
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:974c8fc04837a05afe6f97c79c205a949e8ebb7c
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
|
|
files:
|
|
- path: root/.ssh/authorized_keys
|
|
source: ~/.ssh/id_rsa.pub
|
|
mode: "0600"
|
|
optional: true
|