kernel: image: linuxkit/kernel:4.9.54 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:6b3755e47f00d6027321d3fca99a19af6504be75 - linuxkit/runc:52f92cb577879ce4cfe4e89be2d63af82523fc92 - linuxkit/containerd:ed8e8f92e24dd4b94260cf147594ae3fd13a2182 - linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582 onboot: - name: sysctl image: linuxkit/sysctl:1644bf07edbcaf5ce0bb764fa925b544183547f9 - name: dhcpcd image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2 command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"] - name: wg0 image: linuxkit/ip:30fa3497a42cf941301c1e9cde09b3d68f01b847 net: new binds: - /etc/wireguard:/etc/wireguard command: ["/usr/bin/lk-wg-config", "configure", "/etc/wireguard/wg0.conf"] runtime: interfaces: - name: wg0 add: wireguard createInRoot: true bindNS: net: /run/netns/wg0 - name: wg1 image: linuxkit/ip:30fa3497a42cf941301c1e9cde09b3d68f01b847 net: new binds: - /etc/wireguard:/etc/wireguard command: ["/usr/bin/lk-wg-config", "configure", "/etc/wireguard/wg1.conf"] runtime: interfaces: - name: wg1 add: wireguard createInRoot: true bindNS: net: /run/netns/wg1 services: - name: getty image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512 env: - INSECURE=true net: /run/netns/wg1 - name: rngd image: linuxkit/rngd:45ed7759dd927f4cce3863073ea2e0da1d52a427 - name: nginx image: nginx:alpine net: /run/netns/wg0 capabilities: - CAP_NET_BIND_SERVICE - CAP_CHOWN - CAP_SETUID - CAP_SETGID - CAP_DAC_OVERRIDE files: - path: etc/wireguard/wg0.conf contents: | [Interface] Address = 192.168.2.1/24 DNS = 192.168.2.2 PrivateKey = KG7EKkHDkp7THfW5mOXcZzo3RbGAjq+ARMfJGFm5G1s= ListenPort = 51820 [Peer] PublicKey = ZP7h1OjA1oIAmsAvMKujp2RAAC/f0kY814b3Xq6j/0Y= AllowedIPs = 0.0.0.0/0 Endpoint = 127.0.0.1:51821 - path: etc/wireguard/wg1.conf contents: | [Interface] Address = 192.168.2.2/24 PrivateKey = SCGCKDuTm4PMOw+LXdK/2s8mxnv145QHOohKRq3vc2A= ListenPort = 51821 [Peer] PublicKey = AcS5t3PC5nL/oj0sYhc3yFpDlRaXoJ0mfEq6iq0rFF4= AllowedIPs = 0.0.0.0/0 Endpoint = 127.0.0.1:51820 trust: org: - linuxkit - library