mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 20:06:38 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.44
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac
|
|
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
|
- linuxkit/containerd:8e4aa6c09e9bceee8300a315c23e0333e187f5fa
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:f3f5413abb78fae9020e35bd4788fa93df4530b7
|
|
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:505a985d7bd7a90f15eca9cb4dc6ec92789d51a0
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:42d80758e3b6a9f58cdfd25e53c775eebe951669
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
- name: vpnkit-expose-port
|
|
image: linuxkit/vpnkit-forwarder:42d80758e3b6a9f58cdfd25e53c775eebe951669
|
|
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
|