mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 21:40:37 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.58
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:6b3755e47f00d6027321d3fca99a19af6504be75
|
|
- linuxkit/runc:52f92cb577879ce4cfe4e89be2d63af82523fc92
|
|
- linuxkit/containerd:ed8e8f92e24dd4b94260cf147594ae3fd13a2182
|
|
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:42e88e9338c3b93eda79f6582f58d87fd78d0001
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
- name: vpnkit-expose-port
|
|
image: linuxkit/vpnkit-forwarder:42e88e9338c3b93eda79f6582f58d87fd78d0001
|
|
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
|