rsyslog does not work properly in RHEL7 docker-formatted container image

Solution In Progress - Updated -

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:
      1. Deploy vanilla RHEL7 container image (from registry.access.redhat.com/rhel)
      2. Inside of the container, install rsyslog
      3. Start rsyslog manually
      4. Log anything
      5. Verify nothing appears in /var/log/messages
# 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.