Docker
can set different log drivers for its logging mechanism it can be json file, syslog, fluentd and so on. The default is set to json-file
and these log files are located in /var/lib/docker/containers/
. You can check type of your log in docker
using:$ docker inspect -f '{{.HostConfig.LogConfig.Type}}' <CONTAINER>
json-file
Instead of
<CONTAINER>
put your currently running container id.To read more about this head on to: https://docs.docker.com/config/containers/logging/configure/#configure-the-logging-driver-for-a-container
#docker #log #log_driver
Docker Documentation
Configure logging drivers
Learn how to configure logging driver for the Docker daemon