mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-02 15:13:26 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.40
|
|
cmdline: "console=ttyS0"
|
|
init:
|
|
- linuxkit/init:e3e376881faced5a890b6ceb3e8e899cbfd04ecd
|
|
- linuxkit/runc:842318b6ab524783554428c89a27d95af7bd2844
|
|
- linuxkit/containerd:1ff17c0908bed91a7bff252fba2e3d360d05a3de
|
|
onboot:
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:17423c1ccced74e3c005fd80486e8177841fe02b
|
|
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:5dc5c3c4470c85f6c89f0e26b9d477ae4ff85a3c
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:9c1545e7b093d1210118de7661d7346393ec195b
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder"]
|
|
- name: vpnkit-expose-port
|
|
image: linuxkit/vpnkit-forwarder:9c1545e7b093d1210118de7661d7346393ec195b
|
|
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
|