mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 05:56:34 +00:00
In #1485 I was still using a local mobylinux/init containing #1436, even though I had included the necessary files in the swarmd container. Switch to the current standard init package and drop the unnecessary bind. Also `git add .gitignore` which I forgot last time too. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
kernel:
|
|
image: "mobylinux/kernel:4.9.x"
|
|
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
|
init: "mobylinux/init:00c3a5bbfd9794f4a3187fcc4a9f0c826c46d474"
|
|
system:
|
|
- name: sysctl
|
|
image: "mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c"
|
|
net: host
|
|
pid: host
|
|
ipc: host
|
|
capabilities:
|
|
- CAP_SYS_ADMIN
|
|
readonly: true
|
|
- name: binfmt
|
|
image: "mobylinux/binfmt:bdb754f25a5d851b4f5f8d185a43dfcbb3c22d01"
|
|
binds:
|
|
- /proc/sys/fs/binfmt_misc:/binfmt_misc
|
|
readonly: true
|
|
daemon:
|
|
- name: rngd
|
|
image: "mobylinux/rngd:3dad6dd43270fa632ac031e99d1947f20b22eec9@sha256:1c93c1db7196f6f71f8e300bc1d15f0376dd18e8891c8789d77c8ff19f3a9a92"
|
|
capabilities:
|
|
- CAP_SYS_ADMIN
|
|
oomScoreAdj: -800
|
|
readonly: true
|
|
- name: swarmd
|
|
image: "mobylinux/swarmd:cf11a7626278ebf17efe2780c138b4e626b02c73@sha256:7b31bb4482e6823d2aec291d13782669c22bc03c9fac1dfd7ed207d942c3c061"
|
|
command: ["/usr/bin/swarmd", "--containerd-addr=/run/containerd/containerd.sock", "--log-level=debug", "--state-dir=/var/lib/containerd/swarmd"]
|
|
capabilities:
|
|
- CAP_CHOWN
|
|
- CAP_DAC_OVERRIDE
|
|
- CAP_FSETID
|
|
- CAP_FOWNER
|
|
- CAP_MKNOD
|
|
- CAP_NET_RAW
|
|
- CAP_SETGID
|
|
- CAP_SETUID
|
|
- CAP_SETFCAP
|
|
- CAP_SETPCAP
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_SYS_CHROOT
|
|
- CAP_KILL
|
|
- CAP_AUDIT_WRITE
|
|
net: host
|
|
binds:
|
|
- /run/containerd/containerd.sock:/run/containerd/containerd.sock
|
|
- /var/lib/containerd:/var/lib/containerd
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
files:
|
|
- path: etc/docker/daemon.json
|
|
contents: '{"debug": true}'
|
|
outputs:
|
|
- format: kernel+initrd
|
|
- format: iso-bios
|
|
- format: iso-efi
|