rsyslog does not work properly in RHEL7 docker-formatted container image
Issue
- If you try to setup a docker-formatted container to log messages with rsyslog, logger commands to not work:
- You can reproduce by running the following:
- Deploy vanilla RHEL7 container image (from registry.access.redhat.com/rhel)
- Inside of the container, install rsyslog
- Start rsyslog manually
- Log anything
- Verify nothing appears in /var/log/messages
- You can reproduce by running the following:
# docker run -it rhel /bin/bash
# yum -y install rsyslog
# /usr/sbin/rsyslogd
# logger "this is a test"
Environment
- Red Hat Enterprise Linux 7 docker-formatted container image
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
