Build the syslog container:
docker build -t syslog .
Run it:
docker run --name syslog -d -v /tmp/syslogdev:/dev syslog
Tail them logs:
docker run --volumes-from syslog ubuntu tail -f /var/log/syslog
Start another container to send logs:
docker run -v /tmp/syslogdev/log:/dev/log ubuntu logger hello
See in the log message show up in the "tail" container.
Content type
Image
Digest
sha256:02611f877…
Size
82.3 MB
Last updated
almost 11 years ago
docker pull colinhuang/syslogdocker