Container example how to start a job that logs to syslog, and redirect the log to /dev/console
or /dev/stdout
.
Dockerfile
--- container definitionrsyslog.conf
--- syslog config config that resides at/etc/rsyslog.conf
start.sh
--- script to start the service, starts the syslog first then wait for the pid
podman build -t test .
Run the test
image.
podman run --rm -ti test