Skip to content

aheimsbakk/container-syslog-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syslog-example

Container example how to start a job that logs to syslog, and redirect the log to /dev/console or /dev/stdout.

Files

  • Dockerfile --- container definition
  • rsyslog.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

Build

podman build -t test .

Run

Run the test image.

podman  run --rm -ti test

About

Example how to use syslog to redirect log in a container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published