Files
linuxkit/examples/logging.yml
Avi Deitcher 478807bd58 bump runc v3.3.0
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-11-18 12:30:46 -05:00

31 lines
1.3 KiB
YAML

# 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:b5506cc74a6812dc40982cacfd2f4328f8a4b12a
- linuxkit/runc:24bcd37e33b5eb445c4fa85b354061fa98b78f26
- linuxkit/containerd:ba19f64efd3331a8fd0a33e00eabd14f6ee1780e
- 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