mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-12 03:28:19 +00:00
78 lines
2.8 KiB
YAML
78 lines
2.8 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.70
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:9250948d0de494df8a811edb3242b4584057cfe4
|
|
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
|
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
|
|
- linuxkit/ca-certificates:de21b84d9b055ad9dcecc57965b654a7a24ef8e0
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:db575765635dab6dd1164fce5a39782e0f646b84
|
|
binds:
|
|
- /etc/sysctl.d/01-swarmd.conf:/etc/sysctl.d/01-swarmd.conf
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: format
|
|
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
|
- name: mount
|
|
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
|
command: ["/usr/bin/mountie", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:2af15c9f4b0e73515c219b7cc14e6e65e1d4fd6d
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:22e27189b6b354e1d5d38fc0536a5af3f2adb79f
|
|
env:
|
|
- INSECURE=true
|
|
- name: qemu-ga
|
|
image: linuxkit/qemu-ga:61f1964a9ee6dfe30fb4c09472370ed916e91923
|
|
binds:
|
|
- /dev/vport0p1:/dev/vport0p1
|
|
- name: rngd
|
|
image: linuxkit/rngd:94e01a4b16fadb053455cdc2269c4eb0b39199cd
|
|
- name: ntpd
|
|
image: linuxkit/openntpd:536e5947607c9e6a6771957c2ff817230cba0d3c
|
|
- name: weave
|
|
image: weaveworks/weave:2.0.1@sha256:2d70caac7db33365482cc923d40ff8d3ec1238ae7fe06a00b3dde310d09f226e # Must match swarmd/Dockerfile
|
|
command: ["/bin/sh", "/home/weave/weaver-wrapper"]
|
|
capabilities:
|
|
- all
|
|
pid: host
|
|
binds:
|
|
- /usr/local/bin/weaver-wrapper:/home/weave/weaver-wrapper
|
|
- /var:/var
|
|
- /var/lib/swarmd:/weavedb
|
|
- name: swarmd
|
|
image: linuxkitprojects/swarmd:8c034e2862d3a0fce1e445511a69c4330a1d4dd5
|
|
command: ["/usr/bin/swarmd", "--containerd-addr=/run/containerd/containerd.sock", "--log-level=debug", "--state-dir=/var/lib/swarmd"]
|
|
capabilities:
|
|
- all
|
|
pid: host
|
|
binds:
|
|
- /tmp:/tmp
|
|
- /run/containerd/containerd.sock:/run/containerd/containerd.sock
|
|
- /var/lib/containerd:/var/lib/containerd
|
|
- /var/lib/swarmd:/var/lib/swarmd
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
files:
|
|
- path: /etc/sysctl.d/01-swarmd.conf
|
|
contents: 'net.ipv4.ip_forward = 1'
|
|
- path: usr/local/bin/weaver-wrapper
|
|
contents: |
|
|
/home/weave/weaver \
|
|
--weave-bridge=weave \
|
|
--datapath=datapath \
|
|
--docker-api="" \
|
|
--ipalloc-range=192.168.106.0/24 \
|
|
--http-addr=127.0.0.1:6784 \
|
|
--status-addr=127.0.0.1:6782 &
|
|
|
|
while [ ! -e /sys/class/net/weave/ ] ; do
|
|
sleep 1s
|
|
done
|
|
|
|
/home/weave/weave --local expose net:default
|
|
wait %1
|