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)
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024
- Top Global Medical Tourism Companies in the World - December 20, 2024