kernel: image: linuxkit/kernel:4.14.29 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:7af4e32f31f04d6c63d457c502d2f69344db7d72 - linuxkit/runc:e4b01b68b225d694a60f8b335258bd2144971239 - linuxkit/containerd:d03b69c7d23fdae0fec1b6e62a72d362992135df - linuxkit/ca-certificates:04a6dc9e5c901ee128c353f690bd97aeb7d97ae8 onboot: - name: sysctl image: linuxkit/sysctl:e7106b5e3db64a9ec21eb1479727627ecf52137d - name: dhcpcd image: linuxkit/dhcpcd:8b23f047ffa4d657a2c7dd465e69cc13721c4165 command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"] - name: wg0 image: linuxkit/ip:14cd8bfc3a62e759ee6c925d697171ba18a91d70 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:14cd8bfc3a62e759ee6c925d697171ba18a91d70 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:9e2c184fdd708720d47e663f03ad137c074d4f21 env: - INSECURE=true net: /run/netns/wg1 - name: rngd image: linuxkit/rngd:8bcfb9a90470161a04f25e58407852a3d1ad499a - name: nginx image: nginx:1.13.8-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