1

I am able to find my application logs using docker logs --follow containerId

But which is the physical location of these logs? I used this link, But nothing is useful: Where is the Docker daemon log?

Thanks, Harry

Harry
  • 2,634
  • 4
  • 35
  • 89

2 Answers2

3

Those aren't the docker daemon logs. Those are normally stored in JSON files unless otherwise specified by the driver you select for logging.

They're normally stored in : /var/lib/docker/containers/<container id>/<container id>-json.log

But you can verify with docker inspect <container> | grep LogPath

Dockstar
  • 955
  • 8
  • 14
0

Docker native command to find log location for any container docker inspect --format={{.LogPath}} <ContainerName>

ContainerId can also be used if needed to

Abhishek Jain
  • 2,991
  • 1
  • 22
  • 21