# Simple example of using an external logging service kernel: image: linuxkit/kernel:6.6.13 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:c9a1adb982eb4074c01a34ce43860b6df24c252d - linuxkit/runc:bcd6268ea2d45dc7c6b43ca82d00dd01e7105f17 - linuxkit/containerd:d33b20080a2f88e833680dc8563b5a03a13a297e - linuxkit/ca-certificates:e1688f69167c991bf5be1be809fd68685a4a4a9a - linuxkit/memlogd:5373517ece0f7417174178f6e2ec8af65ace1cb0 onboot: - name: sysctl image: linuxkit/sysctl:0c5861d22fac133d5bf679e763a1df14ad927de2 - name: dhcpcd image: linuxkit/dhcpcd:c1f461bd40fabb1f3bb77348ab52abad8393bdb3 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:42bfdda2fef25c9fd84a58bb88de1496a7cafcda 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:067327496569f30690843e3a2f12684f99eab5fd - name: kmsg image: linuxkit/kmsg:f6010b07ea097673c24016f0d246e2b4913cca74