mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-24 11:03:31 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.54
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:9d1b4ebe1bc8d9e52147c440efa16f2d8677d967
|
|
- linuxkit/runc:1f0edd2e25046389eb556551b99424cff86398c8
|
|
- linuxkit/containerd:097c6989255068b563e6e6f7b46a866ae4a3bc82
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: mount-vpnkit
|
|
image: alpine:3.6
|
|
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:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:41dea19da37ce88d351ef3bd612004fb455a5a71
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
- name: vpnkit-expose-port
|
|
image: linuxkit/vpnkit-forwarder:41dea19da37ce88d351ef3bd612004fb455a5a71
|
|
net: none
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
command: ["/vpnkit-expose-port","-i",
|
|
"-host-ip","127.0.0.1","-host-port","22",
|
|
"-container-ip","127.0.0.1","-container-port","22","-no-local-ip"]
|
|
|
|
files:
|
|
- path: root/.ssh/authorized_keys
|
|
source: ~/.ssh/id_rsa.pub
|
|
mode: "0600"
|
|
optional: true
|
|
|
|
trust:
|
|
org:
|
|
- linuxkit
|