# Simple example of using an external logging service kernel: image: linuxkit/kernel:5.4.30 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:7195dc244cd92af01fd0895fd204249a6114c5e2 - linuxkit/runc:f79954950022fea76b8b6f10de58cb48e4fb3878 - linuxkit/containerd:6ef473a228db6f6ee163f9b9a051102a1552a4ef - linuxkit/ca-certificates:abfc6701b9ca17e34ac9439ce5946a247e720ff5 - linuxkit/memlogd:ddfd99754f0cfc63a675f49aa32a8f2c92785551 onboot: - name: sysctl image: linuxkit/sysctl:541f60fe3676611328e89e8bac251fc636b1a6aa - name: dhcpcd image: linuxkit/dhcpcd:2f8a9b670aa6e96a09db56ec45c9f07ef2a811ee 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:48f66df198981e692084bf70ab72b9fe2be0f880 env: - INSECURE=true # A service which generates log messages for testing - name: write-to-the-logs image: alpine:3.11 command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); sleep 1; done" ] - name: write-and-rotate-logs image: linuxkit/logwrite:0031a6ee2be4c842ce40246f93e5059048b367aa - name: kmsg image: linuxkit/kmsg:ea49dddf9275b10188ba45f57cb7c9c561db4758 trust: org: - linuxkit - library