<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vipul Agarwal on Medium]]></title>
        <description><![CDATA[Stories by Vipul Agarwal on Medium]]></description>
        <link>https://medium.com/@agarwalvipul23?source=rss-53ba4009f19a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rgkt1-GZpeRsxWr-0XYcIg.jpeg</url>
            <title>Stories by Vipul Agarwal on Medium</title>
            <link>https://medium.com/@agarwalvipul23?source=rss-53ba4009f19a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:28:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@agarwalvipul23/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Who ate my disk space?]]></title>
            <link>https://medium.com/@agarwalvipul23/who-ate-my-disk-space-7f9ba64451fb?source=rss-53ba4009f19a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f9ba64451fb</guid>
            <category><![CDATA[minikube]]></category>
            <category><![CDATA[docker-desktop]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Vipul Agarwal]]></dc:creator>
            <pubDate>Sat, 16 Apr 2022 06:46:31 GMT</pubDate>
            <atom:updated>2022-04-16T11:17:02.824Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/189/1*fBpp8v_UliDvMTRpN8NUfg.jpeg" /></figure><p>After docker licensed Docker desktop I switched to docker CLI with <a href="https://itnext.io/goodbye-docker-desktop-hello-minikube-3649f2a1c469">this setup</a>.<br>It works great and I was running multiple containers and built 100s of images locally for my development work.</p><p>One day while working on OpenSearch (running locally inside containers) I got the following error:</p><pre>$flood stage disk watermark [95%] exceeded ... all indices on this node will marked read-only</pre><p>I thought it might be all the stopped containers and dangling images eating up the space, so I ran</p><pre>$ docker system prune </pre><pre>WARNING! This will remove:<br>  - all stopped containers<br>  - all networks not used by at least one container<br>  - all dangling images<br>  - all dangling build cache</pre><pre>Are you sure you want to continue? [y/N] y</pre><pre>Deleted Containers:<br>a417258799506d2c9...de9871164<br>bba467f70d5160db54...ae107a33<br>d664af49a34426262f...0ea67284</pre><pre>Deleted Images:<br>deleted: sha256:f911e45eb9...2d171<br>deleted: sha256:b952f53e3e..2cc4cf<br>deleted: sha256:3e0daa3....0e7f591</pre><pre>Total reclaimed space: 1.008GB</pre><p>But even this did not help. The amount of space reclaimed was very less. I dug deeper into it and read a few posts/articles and then realised that I need to start looking into minikube setup I use.</p><p>The next step for me is to find out how much disk space is being utilised on minikube. So I ran</p><pre>$ minikube ssh &quot;df -h&quot; <br>                                                                                                                          <br>Filesystem      Size  Used Avail Use% Mounted on<br>tmpfs           5.2G  674M  4.5G  13% /<br>devtmpfs        2.8G     0  2.8G   0% /dev<br>tmpfs           2.9G     0  2.9G   0% /dev/shm<br>tmpfs           2.9G   19M  2.9G   1% /run<br>tmpfs           2.9G     0  2.9G   0% /sys/fs/cgroup<br>tmpfs           2.9G  8.0K  2.9G   1% /tmp<br>/dev/sda1        27G   26G    1G  96% /mnt/sda1<br>/Users          466G  217G  250G  47% /Users</pre><p>Here I could see that out of the total disk space allocated to minikube 96% was already in use. At this point, I was not sure what is eating up my space.</p><p>The next thing I looked into is docker images cached on my local machine with</p><pre>$ docker image ls</pre><p>This gave me a good idea of all the images and their sizes. Also, there were only a few containers running on my system. So to know the actual disk space used by docker.</p><pre>$ docker system df</pre><pre>TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE<br>Images          120       37        25.37GB   20.495GB (80%)<br>Containers      104       28        136.8MB   136.7MB (99%)<br>Local Volumes   23        6         53.09MB   13.73kB (0%)<br>Build Cache     0         0         0B        0B</pre><p>This command gave me a good picture of where my disk space is wasted. So the next thing was to delete these unused images and containers, so I ran</p><pre>$ docker system prune --all</pre><pre>WARNING! This will remove:<br>  - all stopped containers<br>  - all networks not used by at least one container<br>  - all images without at least one container associated to them<br>  - all build cache</pre><pre>Are you sure you want to continue? [y/N] y</pre><pre>Deleted Images:<br>untagged: mysql-workench:0.0.1<br>deleted: sha256:1fcfeeda24...009<br>deleted: sha256:428609b895...c76<br>deleted: sha256:5f4f3d6372...a4c7<br>.<br>.</pre><pre>Total reclaimed space: 20.340GB</pre><p>and bingo… I have my free disk space back.</p><h4>TL;DR</h4><p>If you are running docker with minikube and encounter disk space related errors below commands can be useful:</p><pre>$ minikube ssh</pre><pre>$ minikube ssh &quot;df -h&quot;</pre><pre>$ docker system df</pre><pre>$ docker system prune</pre><pre>$ docker system prune -- all</pre><pre>$ docker stats</pre><ol><li><strong><em>minikube ssh</em></strong>: This command lets you log in to minikube node on your local machine and let you work with its file system. This will help you inspect your docker volumes, create some temp directories to mount on pods etc. minikube ssh</li><li><strong><em>minikube ssh &quot;df -h&quot; : </em></strong>It reports information about space on minikube file system. This will help you identify how much space is available out of the total disk size allocated to minikube</li><li><strong><em>docker system df: </em></strong>Displays information regarding the amount of disk space used by the docker daemon</li><li><strong><em>docker system prune: </em></strong>It removes <br>- all stopped containers<br>- all networks not used by at least one container<br> - all dangling images<br> - all dangling build cache</li><li><strong><em>docker system prune --all: </em></strong>It removes<br>- all stopped containers<br>- all networks not used by at least one container<br>- all images without at least one container associated with them<br>- all build cache</li><li><strong><em>docker stats: </em></strong>Display a live stream of container(s) resource usage statistics</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f9ba64451fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>