# Simple example of using an external logging service kernel: image: linuxkit/kernel:5.10.104 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:8f1e6a0747acbbb4d7e24dc98f97faa8d1c6cec7 - linuxkit/runc:f01b88c7033180d50ae43562d72707c6881904e4 - linuxkit/containerd:de1b18eed76a266baa3092e5c154c84f595e56da - linuxkit/ca-certificates:c1c73ef590dffb6a0138cf758fe4a4305c9864f4 - linuxkit/memlogd:014f86dce2ea4bb2ec13e92ae5c1e854bcefec40 onboot: - name: sysctl image: linuxkit/sysctl:bdc99eeedc224439ff237990ee06e5b992c8c1ae - name: dhcpcd image: linuxkit/dhcpcd:52d2c4df0311b182e99241cdc382ff726755c450 command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"] services: # Inside the getty type `/proc/1/root/usr/bin/logread -F` to follow the log - name: getty image: linuxkit/getty:76951a596aa5e0867a38e28f0b94d620e948e3e8 env: - INSECURE=true # A service which generates log messages for testing - name: write-to-the-logs image: alpine:3.13 command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); sleep 1; done" ] - name: write-and-rotate-logs image: linuxkit/logwrite:4d8aa07d4a7130239fc62b09f33e3401ecf62a38 - name: kmsg image: linuxkit/kmsg:b2f6cd4ce9041120e30a4b5ab36bb8db4f5eb458