1

I'm building on top of a Postgres Docker container which has cron implemented on top of Debian Jessie:

For debugging I want to look at the logs which I'm expecting to be at /var/log/syslog, but I don't have syslog on the system.

Would I need to turn on logging manually with a Debian Jessie Docker container?

4

You need to install rsyslog inside the container. You could do this in dockerfile.

Example of simplest dockerfile:

FROM debian:latest

RUN apt-get install -q -y rsyslog
CMD ["sh", "-c", "service rsyslog start ; tail -f /dev/null"]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.