Docker- How to use syslog to record logs on host machine?
Using syslog
driver, your Docker container will write log data to /var/log/syslog
file. You should find your container logs in that file.
syslog-address
is only needed if you use an external syslog server, which doesn't seem to be your case.
Using default driver json-file
, Docker will create a log file in this path.
/var/lib/docker/containers/[container-id]/[container-id]-json.log