{"id":23611,"date":"2022-10-03T14:07:33","date_gmt":"2022-10-03T14:07:33","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=23611"},"modified":"2025-07-12T05:40:19","modified_gmt":"2025-07-12T05:40:19","slug":"where-is-the-docker-daemon-log","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/where-is-the-docker-daemon-log\/","title":{"rendered":"Docker Tutorials: Where is the Docker daemon log"},"content":{"rendered":"\n<p>It depends on your OS. Here are the few locations, with commands for few Operating Systems:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Ubuntu &#8211;&nbsp;\/var\/log\/upstart\/docker.log<\/li><li>Boot2Docker &#8211;&nbsp;\/var\/log\/docker.log<\/li><li>Debian GNU\/Linux &#8211;&nbsp;\/var\/log\/daemon.log<\/li><li>CentOS &#8211;&nbsp;\/var\/log\/daemon.log | grep docker<\/li><li>CoreOS &#8211;&nbsp;journalctl -u docker.service<\/li><li>Fedora &#8211;&nbsp;journalctl -u docker.service<\/li><li>Red Hat Enterprise Linux Server &#8211;&nbsp;\/var\/log\/messages | grep docker<\/li><li>OpenSuSE &#8211;&nbsp;journalctl -u docker.service<\/li><li>OSX &#8211;&nbsp;~\/Library\/Containers\/com.docker.docker\/Data\/com.docker.driver.amd64-linux\/log\/d\u200c\u200bocker.log<\/li><\/ul>\n\n\n\n<p><strong>Note<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Centos7 seems to log to \/var\/log\/messages<\/li><li>On an Amazon Linux instance running their Elastic Container Service it&#8217;s \/var\/log\/docker<\/li><li>systemd has its own logging system called the journal. The logs for the docker daemon can be viewed using $ journalctl -u docker<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_15061\"><iframe loading=\"lazy\"  id=\"_ytid_87135\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_15061\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>It depends on your OS. Here are the few locations, with commands for few Operating Systems: Ubuntu &#8211;&nbsp;\/var\/log\/upstart\/docker.log Boot2Docker &#8211;&nbsp;\/var\/log\/docker.log Debian GNU\/Linux &#8211;&nbsp;\/var\/log\/daemon.log CentOS &#8211;&nbsp;\/var\/log\/daemon.log | grep docker CoreOS &#8211;&nbsp;journalctl&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4862],"tags":[],"class_list":["post-23611","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/23611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=23611"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/23611\/revisions"}],"predecessor-version":[{"id":31419,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/23611\/revisions\/31419"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=23611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=23611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=23611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}