Docker Community Forums

Share and learn in the Docker community.

Missing Logs when Container does not have systemd running in it

I have a Container which does not have systemd running in it.
When I run
logger "hello world"

I would expect to see that show up either inside the container (under /var/log/syslog.log)
However, Inside the container there is no dmsg, or syslog

OR with docker logs mycontainer

However, they just seem to disappear?!?

Any idea where to find these messages?

You need to configure the logging driver to write to the syslog, since this is not the default. See this doc: Configure logging drivers