It depends on your OS. Here are the few locations, with commands for few Operating Systems:
- Ubuntu – /var/log/upstart/docker.log
- Boot2Docker – /var/log/docker.log
- Debian GNU/Linux – /var/log/daemon.log
- CentOS – /var/log/daemon.log | grep docker
- CoreOS – journalctl -u docker.service
- Fedora – journalctl -u docker.service
- Red Hat Enterprise Linux Server – /var/log/messages | grep docker
- OpenSuSE – journalctl -u docker.service
- OSX – ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log
Note
- Centos7 seems to log to /var/log/messages
- On an Amazon Linux instance running their Elastic Container Service it’s /var/log/docker
- systemd has its own logging system called the journal. The logs for the docker daemon can be viewed using $ journalctl -u docker
Docker Advance Tutorial | Part 1 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 2 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 3 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 4 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 5 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 6 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 7 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 8 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 9 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 10 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 11 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 13 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 14 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 15 out 16 | — By DevOpsSchool
Docker Advance Tutorial | Part 16 out 16 | — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024