<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on dev notes</title>
    <link>https://juhanakristianblog.netlify.app/tags/docker/</link>
    <description>Recent content in Docker on dev notes</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 23 Sep 2021 09:33:01 +0000</lastBuildDate>
    <atom:link href="https://juhanakristianblog.netlify.app/tags/docker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Why Docker is eating your disk space</title>
      <link>https://juhanakristianblog.netlify.app/posts/why-docker-is-eating-all-your-diskspace/</link>
      <pubDate>Thu, 23 Sep 2021 09:33:01 +0000</pubDate>
      <guid>https://juhanakristianblog.netlify.app/posts/why-docker-is-eating-all-your-diskspace/</guid>
      <description>&lt;p&gt;I learned recently, in less than ideal circumstances, that Docker doesn&amp;rsquo;t do &lt;strong&gt;any&lt;/strong&gt; log rotation by default 😱&lt;/p&gt;&#xA;&lt;p&gt;So if you&amp;rsquo;re running your application in production with Docker and using Docker&amp;rsquo;s default &lt;a href=&#34;https://docs.docker.com/config/containers/logging/configure/&#34;&gt;logging driver&lt;/a&gt; you might be awakened some night at 3 AM to fix a service outage when you can barely think straight. 😅&lt;/p&gt;&#xA;&lt;p&gt;The default logging driver is &lt;code&gt;json-file&lt;/code&gt; which caches the container logs as JSON. In practice, this means Docker is writing all the container &lt;code&gt;stdout&lt;/code&gt; and &lt;code&gt;stderr&lt;/code&gt; to a JSON file located in the host systems &lt;code&gt;/var/lib/docker/containers&lt;/code&gt; folder.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
