Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the docker daemon logs stored on ubuntu 16.04 xenial xerus?

I expected to find the logs in /var/log/upstart or /var/lib/docker but had no such luck. I'm trying to debug a docker-compose issue and it'd be extremely helpful to know what API calls are being made behind the scenes.

like image 608
rissem Avatar asked Jun 27 '16 17:06

rissem


2 Answers

You can check these places:

  • journalctl -u docker for docker logs in the systemd journal
  • journalctl | grep docker for system logs that mention docker
  • docker logs CONTAINER for logs of a container named CONTAINER
like image 145
Mark Stosberg Avatar answered Oct 27 '22 15:10

Mark Stosberg


And to tail it you can use the following :

journalctl -u docker -n -f
like image 5
odedpr Avatar answered Oct 27 '22 16:10

odedpr