Files
linuxkit/projects/logging/examples/logging.yml
David Scott 1795c15276 projects/logging: start memlogd from init.d
Previously memlogd would always run in the foreground. This patch
adds a `-daemonize` option which binds the /var/run sockets, forks
and execs itself and immediately returns. Therefore the program won't
block (important for an init.d script) but guarantees the sockets will
be available for any program started afterwards.

This also removes the alpine base from the memlogd image as `init`
"containers" are treated as simple file overlays.

Signed-off-by: David Scott <dave.scott@docker.com>
2018-07-06 21:47:50 +01:00

34 lines
902 B
YAML

kernel:
image: linuxkit/kernel:4.14.53
cmdline: "console=ttyS0 console=tty0 page_poison=1"
init:
- linuxkit/init:0e4af96fecc8f752c80d41c0b7d06570cc1dc6b2
- linuxkit/runc:v0.4
- linuxkit/containerd:27a4c84cc8fab2d5ea04342546ecd20453ec99b3
- linuxkit/ca-certificates:v0.4
- linuxkit/memlogd:4c16d6720075bcb2aeb298a8ee2d08d74aa20512
onboot:
- name: sysctl
image: linuxkit/sysctl:v0.4
- name: dhcpcd
image: linuxkit/dhcpcd:1fe0db6b1eb7bcb1e4823e61e08afe6d48af7d16
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: rngd
image: linuxkit/rngd:v0.4
- name: nginx
image: nginx:1.13.8-alpine
capabilities:
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
files:
- path: etc/docker/daemon.json
contents: '{"debug": true}'
trust:
org:
- linuxkit
- library