mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 16:48:32 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:5.4.30
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:7195dc244cd92af01fd0895fd204249a6114c5e2
|
|
- linuxkit/runc:f79954950022fea76b8b6f10de58cb48e4fb3878
|
|
- linuxkit/containerd:6ef473a228db6f6ee163f9b9a051102a1552a4ef
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:2f8a9b670aa6e96a09db56ec45c9f07ef2a811ee
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: mount-vpnkit
|
|
image: alpine:3.11
|
|
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:d5860b5fd032ca3e755e0e3ab39c918c344d8c91
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:e0964f3c34f92f7e7ff7b13e360d57559c64581c
|
|
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
|