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
  • 3,072
  • 6
  • 43
  • 100

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
  • 1,005
  • 11
  • 15
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
  • 3,815
  • 2
  • 26
  • 26