{"id":2891,"date":"2023-02-12T09:39:46","date_gmt":"2023-02-12T16:39:46","guid":{"rendered":"https:\/\/jasonsblog.ddns.net\/?p=2891"},"modified":"2023-02-13T08:01:04","modified_gmt":"2023-02-13T15:01:04","slug":"docker-bug-unused-volumes-not-deleting","status":"publish","type":"post","link":"https:\/\/jasonsblog.ddns.net\/index.php\/2023\/02\/12\/docker-bug-unused-volumes-not-deleting\/","title":{"rendered":"Docker Bug &#8211; Unused Volumes Not Deleting"},"content":{"rendered":"\n<p>I&#8217;ve noticed with the last couple versions of the official docker, unused docker volumes aren&#8217;t deleting whether you try:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker volume prune<\/code><\/pre>\n\n\n\n<p>Or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker system prune -a --volumes<\/code><\/pre>\n\n\n\n<p>I had switched to using <a rel=\"noreferrer noopener\" href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/10\/20\/ctop-for-docker-cli-track-and-interact-with-docker-instances\/\" target=\"_blank\">CTOP<\/a> extensively to track my docker containers and using the CLI commands to handle upgrades and remove old containers and volumes with the commands above, but since that&#8217;s not working I switched back to using <a rel=\"noreferrer noopener\" href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/03\/20\/manage-docker-with-portainer\/\" target=\"_blank\">Portainer<\/a> which allows you to easily select unused volumes and remove them. My <a rel=\"noreferrer noopener\" href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/06\/01\/install-search-engine-proxy-searxng\/\" target=\"_blank\">SearxNG<\/a> and <a rel=\"noreferrer noopener\" href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/06\/01\/install-your-own-search-engine-whoogle\/\" target=\"_blank\">Whoogle<\/a> privacy search proxies install new volumes with new containers and I would have old volumes stack up pretty quickly taking up a lot of disk space maxing out my virtual machine instance, especially when SearxNG updates almost daily. So if you&#8217;re having the same issue it might be time to fire up Portainer which has improved quite a bit from the last time I used it, and if you have multiple docker machines you can install the Portainer Agent on the extras to access from one web interface.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"828\" src=\"https:\/\/jasonsblog.ddns.net\/wp-content\/uploads\/2023\/02\/portainer-1024x828.png\" alt=\"\" class=\"wp-image-2909\" srcset=\"https:\/\/jasonsblog.ddns.net\/wp-content\/uploads\/2023\/02\/portainer-1024x828.png 1024w, https:\/\/jasonsblog.ddns.net\/wp-content\/uploads\/2023\/02\/portainer-300x243.png 300w, https:\/\/jasonsblog.ddns.net\/wp-content\/uploads\/2023\/02\/portainer-768x621.png 768w, https:\/\/jasonsblog.ddns.net\/wp-content\/uploads\/2023\/02\/portainer.png 1442w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Portainer volume list showing unused volume to be deleted<\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/10\/21\/privacy-search-proxies-searxng-and-whoogle\/\" target=\"_blank\" rel=\"noreferrer noopener\">Try out SearxNG and Whoogle on my Digital Ocean Droplet<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve noticed with the last couple versions of the official docker, unused docker volumes aren&#8217;t deleting whether you try: Or: I had switched to using CTOP extensively to track my docker containers and using the CLI commands to handle upgrades and remove old containers and volumes with the commands above, but since that&#8217;s not working [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2891","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_src":null,"author_info":{"display_name":"Jason","author_link":"https:\/\/jasonsblog.ddns.net\/index.php\/author\/jturning\/"},"_links":{"self":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/2891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=2891"}],"version-history":[{"count":5,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/2891\/revisions"}],"predecessor-version":[{"id":2911,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/2891\/revisions\/2911"}],"wp:attachment":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=2891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=2891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=2891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}