kernel: image: linuxkit/kernel:5.10.47 cmdline: "console=ttyS0 console=ttyAMA0" init: - linuxkit/init:78fb57c7da07c4e43c3a37b27755581da087a3b6 - linuxkit/runc:f9c8a136f6aca1cde95b249eb5095df702c23ac8 - linuxkit/containerd:1c4d860d198095565baa3d8d60d434f034f0fef0 - linuxkit/ca-certificates:4df823737c9bf6a9564b736f1a19fd25d60e909a - linuxkit/memlogd:9b0e8a5b3f67672234170d88833163caf7898984 services: # A service which generates logs of log messages - name: fill-the-logs image: alpine command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); done" ] - name: write-and-rotate-logs image: linuxkit/logwrite:e64e0f06e485e3542b58f3517da3bc13f246d208 command: ["/usr/bin/logwrite", "-max-log-size", "1024"] - name: check-the-logs image: alpine:3.13 binds: - /check.sh:/check.sh - /dev/console:/dev/console - /var/log:/var/log command: ["sh", "./check.sh"] pid: host capabilities: - CAP_SYS_BOOT files: - path: check.sh source: ./check.sh