{"id":940,"date":"2024-07-11T12:32:48","date_gmt":"2024-07-11T19:32:48","guid":{"rendered":"https:\/\/porkrind.org\/missives\/?p=940"},"modified":"2024-07-11T12:32:48","modified_gmt":"2024-07-11T19:32:48","slug":"docker-spam-in-dmesg","status":"publish","type":"post","link":"https:\/\/porkrind.org\/missives\/docker-spam-in-dmesg\/","title":{"rendered":"Docker Spam in dmesg"},"content":{"rendered":"<p>I&#8217;ve been annoyed recently with a bunch of junk in my dmesg output:<\/p>\n<pre><code>[Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered blocking state\n[Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered disabled state\n[Thu Jul 11 10:29:27 2024] veth9509698: entered allmulticast mode\n[Thu Jul 11 10:29:27 2024] veth9509698: entered promiscuous mode\n[Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered disabled state\n[Thu Jul 11 10:29:27 2024] veth9509698 (unregistering): left allmulticast mode\n[Thu Jul 11 10:29:27 2024] veth9509698 (unregistering): left promiscuous mode\n[Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered disabled state\n<\/code><\/pre>\n<p>This repeats every couple seconds ad infinitum and pollutes the log making it hard when it&#8217;s time to debug other things.<\/p>\n<p>I finally decided to track it down and found <a href=\"https:\/\/forum.openmediavault.org\/index.php?thread\/49372-system-is-renaming-docker-interfaces-which-causes-the-network-to-stop-wotking\/\">a few<\/a> <a href=\"https:\/\/discuss.linuxcontainers.org\/t\/virtual-interfaces-on-host-are-bouncing-up-and-down\/11962\/5\">different solutions<\/a> but none of them worked. I finally found <a href=\"https:\/\/github.com\/moby\/moby\/issues\/14807#issuecomment-123366926\">a mention in a bug report<\/a> that it was normal. Surely it&#8217;s not normal to spew messages constantly, though\u2026 right?<\/p>\n<p>After pondering it a bit and re-reading some context it seemed like they were saying it was normal to print that every time a container started, not just printing it constantly. That led me to thinking, what if I&#8217;ve got a container that&#8217;s constantly starting and stopping? What would cause that and how do I find it?<\/p>\n<p>Poking around in the <code>docker<\/code> command I found <code>docker events<\/code>, which sounded promising. Sure enough, after running it I saw that a container was constantly starting and stopping. It turns out this container was a failed attempt at something and it had a systemd service that was constantly trying to get it to run. When I stopped working on it I forgot remove the <code>.service<\/code> file from <code>\/etc\/systemd\/system<\/code>. Once I stopped the service and deleted the service file, the spewing stopped. Ahhhhhhh.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been annoyed recently with a bunch of junk in my dmesg output: [Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered blocking state [Thu Jul 11 10:29:27 2024] docker0: port 5(veth9509698) entered disabled state [Thu Jul 11 10:29:27 2024] veth9509698: entered allmulticast mode [Thu Jul 11 10:29:27 2024] veth9509698: entered promiscuous mode [Thu Jul &hellip; <a href=\"https:\/\/porkrind.org\/missives\/docker-spam-in-dmesg\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Docker Spam in dmesg<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-940","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/comments?post=940"}],"version-history":[{"count":4,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/940\/revisions"}],"predecessor-version":[{"id":944,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/940\/revisions\/944"}],"wp:attachment":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/categories?post=940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/tags?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}