# 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:7e8c0f9a968894f6f8be80bfb99b3e16d201e50b - linuxkit/runc:86b8092f0ad8635cc8b6b1c95a4b20f66c4095bb - linuxkit/containerd:1b14966d84209083c9cbc757be862f97005e5796 - linuxkit/ca-certificates:b1afe194ecb800d2b947e24c9e780c959fd3668f - linuxkit/memlogd:f7b06f877b0b1ada32c21b55103f533bf6883fdd onboot: - name: sysctl image: linuxkit/sysctl:cf714d65c0df9ff0f0cccf4a3d4ff4157ddef903 - name: dhcpcd image: linuxkit/dhcpcd:cf2f1bb633284e0c2b0745c9d29aee66fab449aa 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:e594a89dc1aee9b40cb0febcbdf207a5c2506c0e 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:d03805e214f15670e37330e70a9edf790f318eaf - name: kmsg image: linuxkit/kmsg:d445988576012191c0b6650c6d720a1a017c7761