mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 22:52:43 +00:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:5.10.104
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:5251073a3d3e52881bf2697f7dfabac6eedfd569
|
|
- linuxkit/runc:49628804b3a39b0a0cfab046dd80b76a4fd87b5a
|
|
- linuxkit/containerd:c35f10fb8127841b4eb82ddfcebd5d5a54bad0e7
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:fc2b5bf40b13df746ee66f354672bf687a540ce8
|
|
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:e9ceec5f24261dbe15847de8c1c91245251e5814
|
|
binds.add:
|
|
- /root/.ssh:/root/.ssh
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:83a7899b338966f8b7c2ddba5fe50f7814c640b6
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
|
|
files:
|
|
- path: root/.ssh/authorized_keys
|
|
source: ~/.ssh/id_rsa.pub
|
|
mode: "0600"
|
|
optional: true
|