Coder
Coder

Reputation: 3262

Location of docker logs in Ubuntu Linux Mint

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

Upvotes: 1

Views: 3084

Answers (2)

Abhishek Jain
Abhishek Jain

Reputation: 4199

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

ContainerId can also be used if needed to

Upvotes: 0

Dockstar
Dockstar

Reputation: 1028

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

Upvotes: 3

Related Questions