# Simple example of using an external logging service kernel: image: linuxkit/kernel:6.12.52 cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" init: - linuxkit/init:26e546e4ef2669bd44d8c46e3164eb5ba7ae1a5c - linuxkit/runc:98ddef9b5b87cb44783566ed2a86cea95439a631 - linuxkit/containerd:22578becf270fe4bbb82e29f2539f71613e0b4fc - linuxkit/ca-certificates:256f1950df59f2f209e9f0b81374177409eb11de - linuxkit/memlogd:59c35498c6819b7374e85ca7777f13b55a497151 onboot: - name: sysctl image: linuxkit/sysctl:97e8bb067cd9cef1514531bb692f27263ac6d626 - name: dhcpcd image: linuxkit/dhcpcd:b87e9ececac55a65eaa592f4dd8b4e0c3009afdb 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:a86d74c8f89be8956330c3b115b0b1f2e09ef6e0 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:24e6a76c2d45a7679d4f53db9ea377373b543dc7 - name: kmsg image: linuxkit/kmsg:c4d8d509cf496faa21c184ae7fdff6fddc6e186d