how-to-remove-docker-images-containers-and-volumes.html 91 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>How To Remove Docker Images, Containers, and Volumes | DigitalOcean</title>
  7. <meta name="description" content="Docker doesn&#39;t provide direct cleanup commands, but it does give you all the tools you need to clean up your system from the command line. This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and k">
  8. <link rel="apple-touch-icon" sizes="180x180" href="/assets/community/apple-icon-180x180-4b5ac7f80f7cb483dde5afeb99c279301c50ec3670129c73ce568f1b465354be.png" />
  9. <link rel="apple-touch-icon" sizes="152x152" href="/assets/community/apple-icon-152x152-ff64fd3242c24284fefdaec8d6d85c68f98744142d58b950f7ec67cbf03251d7.png" />
  10. <link rel="apple-touch-icon" sizes="144x144" href="/assets/community/apple-icon-144x144-3018401d3d675917b06ded0482cdf53a7c3558b4dc7b6b8de21a485a8da27dfe.png" />
  11. <link rel="apple-touch-icon" sizes="120x120" href="/assets/community/apple-icon-120x120-052cdf68a3af8b01c3fd0d46ed35f8f089c10c690109d20e7b186f0159391863.png" />
  12. <link rel="apple-touch-icon" sizes="114x114" href="/assets/community/apple-icon-114x114-8d862033fc61d86a60b4bdbbbab284da399da714089995ce7efc249f36409517.png" />
  13. <link rel="apple-touch-icon" sizes="76x76" href="/assets/community/apple-icon-76x76-d7c1877f2224ca127b591f65d16635fa7472e7b2cd0e1fe7e7dc8b74d03dd874.png" />
  14. <link rel="apple-touch-icon" sizes="72x72" href="/assets/community/apple-icon-72x72-2d888cc13ddb01fb0d786a0c8567c0a2909eaeb86901da715099b6b88a36b46a.png" />
  15. <link rel="apple-touch-icon" sizes="60x60" href="/assets/community/apple-icon-60x60-01be5b392df60249f168b8b2eed5c928c63aa43ac398c7180cd219c5acdd1e70.png" />
  16. <link rel="apple-touch-icon" sizes="57x57" href="/assets/community/apple-icon-57x57-d060d0fd30794efd579d9edc283917e0a65adfd366e151d9a5cfd8fd7d07cb43.png" />
  17. <link rel="icon" type="image/png" sizes="192x192" href="/assets/community/android-icon-192x192-4d13e6664f412f6904a78be76d626004bcbbd59671f6c755919628134003c2a8.png" />
  18. <link rel="icon" type="image/png" sizes="32x32" href="/assets/community/favicon-32x32-e377577c425642ab495296dfec040ec903e36ffc4cd7a0a4281e84597891a774.png" />
  19. <link rel="icon" type="image/png" sizes="96x96" href="/assets/community/favicon-96x96-967f34b6716bb3cffebefe1fa53206d38d60c72635e826ec5d172c58fb4ab5a9.png" />
  20. <link rel="icon" type="image/png" sizes="16x16" href="/assets/community/favicon-16x16-ce9c1eb6d969d5b2ec276ae4b715756aa0e63106f33dc53a836687fdfee49ecd.png" />
  21. <meta name="msapplication-TileImage" content="/assets/community/ms-icon-144x144-3018401d3d675917b06ded0482cdf53a7c3558b4dc7b6b8de21a485a8da27dfe.png" />
  22. <meta name="msapplication-TileColor" content="#0069ff" />
  23. <meta name="theme-color" content="#0069ff" />
  24. <meta name="og:title" content="How To Remove Docker Images, Containers, and Volumes | DigitalOcean">
  25. <meta name="og:description" content="Docker doesn&#39;t provide direct cleanup commands, but it does give you all the tools you need to clean up your system from the command line. This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and k">
  26. <meta name="og:site_name" content="DigitalOcean">
  27. <meta name="og:type" content="article">
  28. <meta name="og:image" content="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/tutorials/images/large/Docker_DigitalOcean.png?1583268440">
  29. <meta name="twitter:site" content="DigitalOcean">
  30. <meta name="twitter:title" content="How To Remove Docker Images, Containers, and Volumes | DigitalOcean">
  31. <meta name="twitter:description" content="Docker doesn&#39;t provide direct cleanup commands, but it does give you all the tools you need to clean up your system from the command line. This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and k">
  32. <meta name="twitter:creator" content="DigitalOcean">
  33. <meta name="twitter:card" content="photo" />
  34. <meta name="twitter:url" content="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes"/>
  35. <meta name="twitter:image" content="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/tutorials/images/large/Docker_DigitalOcean.png?1583268440">
  36. <link rel='canonical' href='https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes'>
  37. <link rel='amphtml' href='https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes.amp'>
  38. <link rel="alternate" hreflang="en" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes" />
  39. <link rel="alternate" hreflang="de" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes-de" />
  40. <link rel="alternate" hreflang="es" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes-es" />
  41. <link rel="alternate" hreflang="fr" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes-fr" />
  42. <link rel="alternate" hreflang="pt" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes-pt" />
  43. <link rel="alternate" hreflang="ru" href="https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes-ru" />
  44. <link rel="preconnect" href="https://digitalocean.cdn.prismic.io">
  45. <link rel="preconnect" href="https://hello.myfonts.net">
  46. <link rel="stylesheet" media="all" href="/assets/community/application-1d6f1f0ccf88e772200c0b6525375710b6023a41177a7e17ae81ab21dcd67c22.css" />
  47. <meta name="csrf-param" content="authenticity_token" />
  48. <meta name="csrf-token" content="cQkJBFZ74TPZy2f+h5oXm1jiwdTtipKBqK7m+Ye53vwgZept2GAhvDbPphSGwMQY0Nq8SVWIbZMVeWBUuTU0IA==" />
  49. <script src="/assets/community/prerequisites-d767b66db7c8ba7d47a922cfce41c73d40601b3586be6f96107d5cd25cc752b8.js"></script>
  50. <script>
  51. //<![CDATA[
  52. window.cookieDomain = '.digitalocean.com';
  53. //]]>
  54. </script><script defer src="https://assets.digitalocean.com/cookieConsent/cookieConsent.js"></script>
  55. <script>
  56. (function () {
  57. document.addEventListener("DOMContentLoaded", function () {
  58. var css = document.getElementById("cookie-consent-css");
  59. if (css) { return; }
  60. css = document.createElement("link");
  61. css.id = "cookie-consent-css";
  62. css.rel = "stylesheet";
  63. css.href = "https://assets.digitalocean.com/cookieConsent/cookieConsent.css";
  64. document.head.insertBefore(css, document.head.childNodes[ document.head.childNodes.length - 1 ].nextSibling);
  65. }, false);
  66. })();
  67. </script>
  68. <script type="text/javascript">
  69. if(window.analytics=window.analytics||[],window.analytics.included)window.console&&console.error&&console.error("analytics.js included twice");else{window.analytics.included=!0,window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(a){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(a),window.analytics.push(n),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(a){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+a+"/analytics.min.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)},window.analytics.SNIPPET_VERSION="2.0.9",window.analytics.load("puo3uv968t")}
  70. window.analytics.page();
  71. </script>
  72. <!-- Google Tag Manager -->
  73. <script>
  74. (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  75. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  76. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  77. '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  78. })(window,document,'script','dataLayer','GTM-KHWBBT');
  79. </script>
  80. <!-- End Google Tag Manager -->
  81. <script src="/assets/community/internalCookies-d87064530395e23ede521d41535044c0b89092bef82bbb545bd1c8f731908bad.js"></script>
  82. <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
  83. <link rel="alternate" type="application/rss+xml" title="RSS" href="/community/tutorials/feed">
  84. <script>
  85. window.comApp = {
  86. prefix: '/community',
  87. svgIconPath: 'https://www.digitalocean.com/assets/community/icon-sprite-a36f54b391966bc94e4a1e4467047db73568edf98e549f4bc919b952f5272560.svg',
  88. railsEnv: 'production',
  89. rootUrl: 'https://www.digitalocean.com/community',
  90. algolia_application_id: '6ZHEUVKJ88',
  91. algolia_api_key: 'c5470567eae7fa1177d43222e18ba086'
  92. };
  93. </script>
  94. <script>
  95. window.Prism = window.Prism || {};
  96. window.Prism.manual = true;
  97. </script>
  98. <script src="/assets/community/application-47a7a0a1952ecc5f32f1e0249f36c314c830546ea5ea9d8f18e23dbdebe07e55.js"></script>
  99. </head>
  100. <body class="feature-filter-bar feature-upvotes tutorials-controller tutorial-single" data-env="production" data-prefix="/community" data-user-id="" data-facebook-app-id="694818843983011" data-completed-tutorial-id="" data-tutorial-id="2109" data-js="tutorial"
  101. data-upvote="null"
  102. data-flagged=""
  103. >
  104. <div class='outside_viewport'>
  105. <div id="contents-modal" class="modal fade mini-modal" style="display: none;">
  106. <div class="modal-dialog">
  107. <div class="modal-content">
  108. <div class="modal-header">
  109. <h1>Contents</h1>
  110. <button class="close-button icon icon-close-light" data-dismiss="modal" aria-label="close"></button>
  111. </div>
  112. <div class="modal-body">
  113. <div class="table-of-contents-modal"></div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div id="share-modal" class="modal fade mini-modal" style="display: none;">
  119. <div class="modal-dialog">
  120. <div class="modal-content">
  121. <div class="modal-header">
  122. <h1>Share</h1>
  123. <button type="button" class="close-button icon icon-close-light" aria-label="close" data-dismiss="modal"></button>
  124. </div>
  125. <div class="modal-body">
  126. <div class="social-sharing social-sharing-container">
  127. <ul class="top ">
  128. <li class="shareBtn" id="sbTwitter">
  129. <a href="http://twitter.com/share?text=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;url=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=twshare" class="share-icon share-popup" title="Share on Twitter" target="_blank">
  130. <span class="sIcon icon-bird"></span>
  131. </a>
  132. <a href="http://twitter.com/share?text=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;url=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=twshare" class="share-link share-popup" title="Share on Twitter" target="_blank">
  133. Twitter
  134. </a>
  135. </li>
  136. <li class="shareBtn" id="sbFacebook">
  137. <a class="share-icon share-popup" href="https://www.facebook.com/sharer/sharer.php?u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=fbshare" title="Share on Facebook" target="_blank">
  138. <span class="sIcon icon-facebook-B"></span>
  139. </a>
  140. <a class="share-link share-popup" href="https://www.facebook.com/sharer/sharer.php?u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=fbshare" title="Share on Facebook" target="_blank">
  141. Facebook
  142. </a>
  143. </li>
  144. <li class="shareBtn" id="sbYC">
  145. <a href="https://news.ycombinator.com/submitlink?t=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=hnshare" class="share-icon share-popup" target="_blank" title="Submit to Hacker News">
  146. <span class="sIcon icon-hacker-news"></span>
  147. </a>
  148. <a href="https://news.ycombinator.com/submitlink?t=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=hnshare" class="share-link share-popup" target="_blank" title="Submit to Hacker News">
  149. Hacker News
  150. </a>
  151. </li>
  152. </ul>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="table-of-contents">
  159. <div data-js="tableOfContentsDesktop"></div>
  160. </div>
  161. <!-- algolia universal search -->
  162. <input type="hidden" id="q-universal-search" value="" />
  163. <div id="share-modal" class="modal fade mini-modal" style="display: none;">
  164. <div class="modal-dialog">
  165. <div class="modal-content">
  166. <div class="modal-header">
  167. <h1>Share</h1>
  168. <button type="button" class="close-button icon icon-close-light" aria-label="close" data-dismiss="modal"></button>
  169. </div>
  170. <div class="modal-body">
  171. <div class="social-sharing social-sharing-container">
  172. <ul class="bottom ">
  173. <li class="shareBtn" id="sbTwitter">
  174. <a href="http://twitter.com/share?text=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;url=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=twshare" class="share-icon share-popup" title="Share on Twitter" target="_blank">
  175. <span class="sIcon icon-bird"></span>
  176. </a>
  177. <a href="http://twitter.com/share?text=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;url=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=twshare" class="share-link share-popup" title="Share on Twitter" target="_blank">
  178. Twitter
  179. </a>
  180. </li>
  181. <li class="shareBtn" id="sbFacebook">
  182. <a class="share-icon share-popup" href="https://www.facebook.com/sharer/sharer.php?u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=fbshare" title="Share on Facebook" target="_blank">
  183. <span class="sIcon icon-facebook-B"></span>
  184. </a>
  185. <a class="share-link share-popup" href="https://www.facebook.com/sharer/sharer.php?u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=fbshare" title="Share on Facebook" target="_blank">
  186. Facebook
  187. </a>
  188. </li>
  189. <li class="shareBtn" id="sbYC">
  190. <a href="https://news.ycombinator.com/submitlink?t=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=hnshare" class="share-icon share-popup" target="_blank" title="Submit to Hacker News">
  191. <span class="sIcon icon-hacker-news"></span>
  192. </a>
  193. <a href="https://news.ycombinator.com/submitlink?t=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=hnshare" class="share-link share-popup" target="_blank" title="Submit to Hacker News">
  194. Hacker News
  195. </a>
  196. </li>
  197. </ul>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. <div id="newsletter-signup-dialog" class="newsletter-signups-dialog" data-newsletter-signup-dialog data-article-target=".content-body">
  204. <div class="form-message">
  205. <div class="pull-right">
  206. <a href="javascript:;" class="newsletter-signups-dialog-dismiss" data-newsletter-signup-dismiss>&times;</a>
  207. </div>
  208. <h4 class="newsletter-signups-dialog-title">
  209. Sign up for our newsletter.
  210. </h4>
  211. <p class="newsletter-signups-dialog-description">
  212. Get the latest tutorials on SysAdmin and open source topics.
  213. </p>
  214. <form class="newsletter-signup" id="new_newsletter_signup" data-newsletter-signup="true" action="/community/newsletter" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="&#x2713;" />
  215. <input data-newsletter-signup-field="url" type="hidden" name="newsletter_signup[url]" id="newsletter_signup_url" />
  216. <input data-newsletter-signup-field="title" type="hidden" name="newsletter_signup[title]" id="newsletter_signup_title" />
  217. <div class="newsletter-signup-ajax-error" data-newsletter-signup-ajax-error></div>
  218. <div class="form-group">
  219. <input placeholder="Enter your email address" required="required" class="field" type="email" name="newsletter_signup[email]" id="newsletter_signup_email" />
  220. </div>
  221. <button data-disable-with="Sign Up" class="button blue-button">
  222. Sign Up
  223. </button>
  224. </form>
  225. </div>
  226. <div class="thanks-message hidden" data-newsletter-signup-successful>
  227. <div class='pull-right'>
  228. <a href='javascript:;' class='newsletter-signups-dialog-dismiss icon icon-close-light' data-newsletter-signup-dismiss></a>
  229. </div>
  230. <span class='newsletter-signups-dialog-success'>
  231. Thanks for signing up!
  232. </span>
  233. </div>
  234. </div>
  235. </div>
  236. <div style="display: none;">
  237. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  238. <symbol id="navbar-logo" xmlns="http://www.w3.org/2000/svg"> <title>DigitalOcean home</title> <g fill="currentColor" fill-rule="evenodd"> <path d="M14.4942 29v-5.5674c5.9572 0 10.5633-5.8478 8.2892-12.059-.8425-2.3006-2.693-4.1355-5.0126-4.9706-6.262-2.2534-12.1564 2.3135-12.1573 8.2207 0 0-.0006.0014-.0014.0014H0C0 5.2123 9.1687-2.1167 19.1138.9624c4.3459 1.3457 7.7993 4.7708 9.1561 9.081C31.3742 19.9068 23.985 29 14.4942 29"></path> <path d="M14.507 23.4468H8.9103v-5.549s.0005-.0011.0011-.0011h5.5949c.0006 0 .0009.0006.0009.0006v5.5495M8.9093 27.7118H4.6105l-.0012-.0012v-4.2638h4.3009v4.2638l-.0009.0012M4.6125 23.4468H1.0088c-.0015 0-.0026-.0012-.0026-.0012v-3.5724s.0011-.0025.0026-.0025h3.601c.0015 0 .0027.0011.0027.0011v3.575M43.2806 9.6357h1.649c1.8346 0 3.345.358 4.49 1.0647 1.2714.7603 1.9164 2.2069 1.9164 4.2991 0 2.1554-.6465 3.6671-1.9207 4.4942h-.0008c-1.0971.7196-2.5981 1.0846-4.462 1.0846h-1.6719V9.6357zm8.324-1.0736c-1.6598-1.142-3.7252-1.721-6.1387-1.721h-5.2537V23.373h5.2537c2.4074 0 4.4737-.6113 6.1407-1.8157.907-.6382 1.6197-1.5304 2.1185-2.651.4962-1.1144.7479-2.4288.7479-3.9067 0-1.4605-.2517-2.758-.7482-3.857-.4988-1.104-1.212-1.972-2.1202-2.5804zM58.1303 6.6376c-.5051 0-.9403.1777-1.2906.5254-.3546.335-.5346.7597-.5346 1.2618 0 .501.1791.9322.532 1.2825.3529.35.788.528 1.2932.528.5042 0 .9394-.178 1.2928-.528.3535-.3508.5324-.7821.5324-1.2825 0-.5015-.18-.926-.5324-1.2592-.3534-.3503-.7886-.528-1.2928-.528M56.6247 23.3729h2.9538V11.7294h-2.9538zM69.5321 19.5787c-.5162.5814-1.1793.8635-2.0264.8635-.8471 0-1.5064-.282-2.015-.863-.5065-.5777-.7637-1.3439-.7637-2.2773 0-.9479.2572-1.7238.764-2.3058.502-.576 1.1796-.8683 2.0147-.8683.8465 0 1.5096.284 2.0262.8695.5142.582.7751 1.3573.7751 2.3046 0 .9328-.2609 1.6988-.7749 2.2768zm.775-6.8767c-.8908-.7858-1.8858-1.2444-2.9614-1.2444-1.6305 0-2.9859.5598-4.0276 1.662-1.0555 1.0932-1.5907 2.5006-1.5907 4.1823 0 1.644.5269 3.0464 1.568 4.1709 1.0498 1.088 2.4123 1.6396 4.0503 1.6396 1.139 0 2.1182-.3144 2.9157-.9356v.268c0 .9662-.2608 1.7176-.7751 2.234-.5137.5154-1.226.7764-2.1173.7764-1.3637 0-2.2183-.5314-3.2589-1.9262l-2.0115 1.917.0542.0754c.4346.605 1.1 1.197 1.9785 1.7594.8787.5603 1.9832.8447 3.2832.8447 1.7536 0 3.1726-.5363 4.2172-1.5933 1.0506-1.0628 1.5835-2.486 1.5835-4.2286V11.7294H70.307v.9726zM75.7434 23.3729h2.9541V11.7294h-2.9541zM77.249 6.6376c-.5052 0-.94.1777-1.2906.5254-.3547.335-.5344.7597-.5344 1.2618 0 .501.1789.9322.532 1.2825.353.35.7878.528 1.293.528.5045 0 .9396-.178 1.2928-.528.3535-.3508.5323-.7821.5323-1.2825 0-.5015-.1797-.926-.5323-1.2592-.3532-.3503-.7883-.528-1.2929-.528M85.1724 8.5831h-2.9082v3.1463h-1.6888v2.6702h1.6888v4.8365c0 1.5134.3047 2.5964.9064 3.2181.6031.6247 1.6741.9414 3.1831.9414.48 0 .963-.0156 1.4354-.0463l.133-.0088v-2.6683l-1.013.0526c-.7033 0-1.1728-.1226-1.3961-.3637-.226-.245-.3406-.7636-.3406-1.5404v-4.421h2.7497v-2.6703h-2.7497V8.583M101.7735 23.3729h2.9544V6.8412h-2.9544zM134.5728 19.2094c-.5286.5874-1.0693 1.0966-1.4855 1.3613v.0005c-.4085.2599-.924.3918-1.532.3918-.8703 0-1.5703-.3144-2.1405-.9621-.567-.644-.8545-1.4716-.8545-2.4613s.2838-1.8162.8436-2.4556c.5625-.6434 1.2588-.9562 2.1285-.9562.9515 0 1.9548.5869 2.8145 1.5947l1.9525-1.8568c-1.273-1.6433-2.897-2.4081-4.8352-2.4081-1.622 0-3.028.5862-4.1788 1.7411-1.1446 1.147-1.7251 2.6074-1.7251 4.3409 0 1.7335.58 3.1977 1.7234 4.352 1.1447 1.1557 2.5514 1.7417 4.1805 1.7417 2.139 0 3.8651-.9158 5.029-2.5935l-1.9204-1.8304M140.2405 16.0973c.1422-.5567.401-1.0207.7714-1.381.4005-.3906.9214-.5885 1.5489-.5885.716 0 1.2702.2019 1.6474.6014.3495.3696.5467.8296.588 1.368h-4.5557zm6.4569-2.7414c-.4191-.5788-.9896-1.0448-1.6965-1.3854-.7047-.3404-1.526-.513-2.441-.513-1.6489 0-2.9982.6037-4.0113 1.7946-.9836 1.182-1.4818 2.651-1.4818 4.3665 0 1.7648.547 3.2253 1.6254 4.341 1.0727 1.1105 2.5083 1.6737 4.267 1.6737 1.992 0 3.627-.799 4.8587-2.3752l.0666-.0847-1.9273-1.837c-.1789.2139-.4317.4561-.6628.6722-.2918.273-.5659.4842-.8588.6289-.4415.218-.9369.3255-1.4907.3255-.8187 0-1.4964-.2388-2.0147-.71-.4847-.4403-.768-1.0345-.843-1.7683h7.8265l.0264-1.0693c0-.7569-.1038-1.4862-.3088-2.1677a6.312 6.312 0 0 0-.934-1.8918zM152.797 18.9234c.3352-.2318.8085-.3483 1.4073-.3483.7112 0 1.4654.1413 2.2426.421v1.1421c-.6421.592-1.4996.8922-2.5499.8922-.5114 0-.909-.1126-1.1822-.3355-.2683-.218-.3985-.4955-.3985-.847 0-.3994.1571-.7022.4808-.9245zm5.2452-6.3229h-.0003c-.8952-.758-2.1328-1.143-3.678-1.143-.9829 0-1.902.2144-2.7336.6324-.7691.387-1.5245 1.0275-2.0043 1.8662l.0298.0358 1.8917 1.796c.7791-1.2322 1.6454-1.66 2.7941-1.66.6172 0 1.1298.1643 1.5234.4881.3916.3216.5819.7304.5819 1.249v.5652c-.7324-.221-1.4629-.333-2.1738-.333-1.47 0-2.6663.3432-3.555 1.0193-.9.6852-1.3562 1.665-1.3562 2.9125 0 1.094.3847 1.9829 1.1461 2.6433.7677.6372 1.7275.961 2.8524.961 1.1246 0 2.177-.4495 3.132-1.2191v.9587h2.9089v-7.4852c0-1.4173-.4572-2.523-1.3591-3.2872zM170.7656 12.8285c-.8227-.9092-1.9791-1.371-3.4371-1.371-1.172 0-2.1236.3338-2.8357.9926v-.7207h-2.897v11.6435h2.954v-6.4215c0-.8823.2119-1.5828.6293-2.0826.4162-.4987.989-.741 1.75-.741.6691 0 1.1765.2167 1.5506.662.3759.4474.5662 1.0638.5662 1.8335v6.7496H172v-6.7496c0-1.6127-.415-2.889-1.2344-3.7948M92.8158 18.9234c.3351-.2318.8087-.3483 1.4075-.3483.7112 0 1.4652.1413 2.2426.421v1.1421c-.6421.592-1.4998.8922-2.5502.8922-.5114 0-.9087-.1126-1.1819-.3355-.2683-.218-.3988-.4955-.3988-.847 0-.3994.1574-.7022.4808-.9245zm5.2451-6.3229h-.0003c-.8952-.758-2.1328-1.143-3.6776-1.143-.983 0-1.902.2144-2.7337.6324-.7694.387-1.5247 1.0275-2.0043 1.8662l.0295.0358 1.8917 1.796c.7792-1.2322 1.6458-1.66 2.7941-1.66.6172 0 1.1298.1643 1.5234.4881.3916.3216.5822.7304.5822 1.249v.5652c-.7327-.221-1.4631-.333-2.174-.333-1.47 0-2.6664.3432-3.555 1.0193-.8999.6852-1.3562 1.665-1.3562 2.9125 0 1.094.3847 1.9829 1.1463 2.6433.7677.6372 1.7272.961 2.8524.961 1.1246 0 2.1766-.4495 3.1318-1.2191v.9587H99.42v-7.4852c0-1.4173-.457-2.523-1.359-3.2872zM115.4464 9.5808c-3.0682 0-5.5645 2.4755-5.5645 5.5188s2.4963 5.5188 5.5645 5.5188c3.0682 0 5.5645-2.4755 5.5645-5.5188s-2.4963-5.5188-5.5645-5.5188zm0 14.0408c-4.7383 0-8.5928-3.8228-8.5928-8.522 0-4.6994 3.8545-8.5223 8.5928-8.5223 4.738 0 8.5925 3.8229 8.5925 8.5223 0 4.6992-3.8545 8.522-8.5925 8.522z"></path> </g> </symbol>
  239. <symbol id="navbar-community_logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 532.2 99.8" fill="currentColor"> <path class="st0" d="M98.5,23c15.5,0,27.7,12.1,27.7,28.2c0,16.1-12.3,28.1-27.7,28.1c-15.6,0-27.7-11.9-27.7-28.1 C70.8,35.1,82.9,23,98.5,23z M98.5,67.9c8.7,0,14.9-7,14.9-16.8c0-9.8-6.2-16.8-14.9-16.8c-8.8,0-15,7-15,16.8 C83.5,60.9,89.7,67.9,98.5,67.9z"/> <path class="st0" d="M166.8,45.9c0-7-3.5-11.6-9.9-11.6c-7.2,0-11.1,5.3-11.1,13.1V78h-12.5V24.3h12.3V29c2.4-2.8,7-6,13.9-6 c7.3,0,12.2,3.1,15,7c4.4-4.9,10-7,16.8-7c14.4,0,21.4,8.5,21.4,23.8V78h-12.5V45.9c0-7-3.5-11.6-9.9-11.6 c-7.2,0-11.2,5.3-11.2,13.1V78h-12.4V45.9z"/> <path class="st0" d="M255.5,45.9c0-7-3.5-11.6-9.9-11.6c-7.2,0-11.1,5.3-11.1,13.1V78h-12.5V24.3h12.3V29c2.4-2.8,7-6,13.9-6 c7.3,0,12.2,3.1,15,7c4.4-4.9,10-7,16.8-7c14.4,0,21.4,8.5,21.4,23.8V78h-12.5V45.9c0-7-3.5-11.6-9.9-11.6 c-7.2,0-11.2,5.3-11.2,13.1V78h-12.4V45.9z"/> <path class="st0" d="M322.5,56.4c0,7,3.6,11.6,10.1,11.6c7.2,0,11.2-5.6,11.2-13.5V24.3h12.5V78h-12.3v-4.4 c-3.4,3.7-8.1,5.6-13.9,5.6c-11.9,0-20.1-8.4-20.1-23.7V24.3h12.5V56.4z"/> <path class="st0" d="M378.2,78h-12.5V24.3h12.3v4.4c2.7-3.1,7.7-5.7,13.9-5.7c13.1,0,21.3,8.5,21.3,23.8V78h-12.5V46.8 c0-7.5-3.7-12.5-10.6-12.5c-7.8,0-11.8,5.6-11.8,14V78z"/> <path class="st0" d="M427.8,0.2c4.4,0,7.9,3.4,7.9,7.8s-3.5,7.9-7.9,7.9c-4.4,0-7.9-3.5-7.9-7.9S423.4,0.2,427.8,0.2z M421.4,24.3 h12.5V78h-12.5V24.3z"/> <path class="st0" d="M446.7,59.1V35.5h-6.5V24.3h6.5v-15H459v15h12.2v11.2H459v21.7c0,7.8,1.8,9.8,8.8,9.8c1.2,0,4.1-0.2,4.1-0.2 v11.2c0,0-2.4,0.2-6.7,0.2C451.2,78.1,446.7,72.7,446.7,59.1z"/> <path class="st0" d="M497.3,78.7l-21.3-54.4h14.2l14,38.8l14.2-38.8h13.6l-24.1,60.2c-3.7,9.4-7.2,15.3-21.3,15.3 c-2.5,0-4.8-0.1-4.8-0.1V88c0,0,1.5,0.1,2.8,0.1c7.6,0,9.8-2.3,11.8-7.8L497.3,78.7z"/> <path class="st0" d="M62.4,55.9c-5.3,7-12.2,11.4-22.1,11.4c-15.6,0-27-11.7-27-27.5c0-16.1,11.4-27.8,26.5-27.8 c10,0,16.8,4.8,21.3,11.3l8.4-8.8C63.1,5.7,53.3,0,39.7,0C17.1,0,0,15.9,0,39.8c0,23.4,17.1,39.4,40.1,39.4c13.1,0,22-4.9,28.6-12.2 L62.4,55.9z"/> </symbol>
  240. <symbol id="navbar-control_panel_icon" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M19.6875 23.4862C19.6885 23.9722 19.4965 24.4388 19.1537 24.7833C18.8109 25.1279 18.3454 25.3222 17.8594 25.3237H3.23438C2.99366 25.3232 2.75539 25.2753 2.53321 25.1827C2.31102 25.09 2.10927 24.9545 1.93949 24.7839C1.7697 24.6132 1.63522 24.4108 1.54373 24.1881C1.45223 23.9655 1.40552 23.727 1.40626 23.4862V3.25498C1.40577 3.01417 1.45271 2.77562 1.54441 2.55295C1.63611 2.33028 1.77077 2.12785 1.9407 1.95722C2.11063 1.7866 2.31251 1.65111 2.5348 1.5585C2.75709 1.46589 2.99545 1.41797 3.23626 1.41748L17.8613 1.44186C18.347 1.44384 18.812 1.63843 19.1544 1.98292C19.4968 2.32741 19.6885 2.79366 19.6875 3.27936V23.4862Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M43.5863 12.27C43.5828 12.7516 43.3883 13.212 43.0456 13.5503C42.7028 13.8885 42.2397 14.0768 41.7582 14.0738H27.1332C26.8947 14.0755 26.6582 14.0302 26.4372 13.9405C26.2162 13.8507 26.015 13.7183 25.8453 13.5508C25.6755 13.3833 25.5404 13.1839 25.4477 12.9642C25.355 12.7444 25.3065 12.5085 25.3051 12.27V3.24565C25.308 2.76461 25.5019 2.30442 25.8439 1.96621C26.186 1.62799 26.6484 1.43941 27.1294 1.4419L41.7544 1.41753C42.2365 1.41403 42.7002 1.60205 43.0437 1.94027C43.3872 2.27849 43.5823 2.73924 43.5863 3.22128V12.27Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M19.6875 41.7956C19.686 42.0347 19.6375 42.2712 19.5446 42.4915C19.4518 42.7118 19.3164 42.9117 19.1463 43.0797C18.9762 43.2477 18.7747 43.3806 18.5532 43.4707C18.3318 43.5609 18.0947 43.6065 17.8556 43.605L3.23063 43.5806C2.74908 43.5826 2.28644 43.3934 1.94436 43.0545C1.60228 42.7155 1.40873 42.2547 1.40625 41.7731V32.7563C1.40748 32.5175 1.45575 32.2813 1.54831 32.0612C1.64087 31.8412 1.7759 31.6415 1.94569 31.4736C2.11547 31.3057 2.31667 31.173 2.53779 31.0829C2.75892 30.9929 2.99562 30.9473 3.23438 30.9488H17.8594C18.3414 30.9463 18.8047 31.1352 19.1475 31.4742C19.4903 31.8131 19.6845 32.2742 19.6875 32.7563V41.7956Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M27.1349 43.605C26.894 43.6045 26.6555 43.5565 26.433 43.4638C26.2106 43.3711 26.0087 43.2354 25.8387 43.0646C25.6688 42.8937 25.5341 42.6911 25.4426 42.4682C25.351 42.2453 25.3042 42.0066 25.3049 41.7656V21.5381C25.3042 21.2973 25.3509 21.0587 25.4424 20.8359C25.5338 20.6132 25.6683 20.4106 25.8381 20.2398C26.0078 20.069 26.2095 19.9333 26.4317 19.8405C26.6539 19.7476 26.8923 19.6995 27.1331 19.6987H41.7581C41.9989 19.6995 42.2372 19.7476 42.4594 19.8405C42.6816 19.9333 42.8833 20.069 43.0531 20.2398C43.2228 20.4106 43.3573 20.6132 43.4488 20.8359C43.5402 21.0587 43.5869 21.2973 43.5862 21.5381V41.7412C43.5872 42.2271 43.3955 42.6935 43.0532 43.0383C42.7109 43.3831 42.2458 43.5781 41.7599 43.5806L27.1349 43.605Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </symbol>
  241. <symbol id="navbar-community_icon" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0)"> <path d="M12.6562 10.5469C12.6562 9.85155 12.8624 9.17184 13.2487 8.5937C13.635 8.01556 14.1841 7.56495 14.8265 7.29886C15.4689 7.03277 16.1758 6.96315 16.8577 7.0988C17.5397 7.23445 18.1661 7.56929 18.6578 8.06095C19.1495 8.55262 19.4843 9.17905 19.6199 9.86101C19.7556 10.543 19.686 11.2499 19.4199 11.8922C19.1538 12.5346 18.7032 13.0837 18.1251 13.47C17.5469 13.8563 16.8672 14.0625 16.1719 14.0625" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M16.1719 18.2812C16.0328 18.2812 15.8969 18.3225 15.7812 18.3997C15.6656 18.477 15.5755 18.5868 15.5223 18.7153C15.4691 18.8438 15.4551 18.9852 15.4823 19.1215C15.5094 19.2579 15.5764 19.3832 15.6747 19.4816C15.773 19.5799 15.8983 19.6469 16.0347 19.674C16.1711 19.7011 16.3125 19.6872 16.4409 19.634C16.5694 19.5808 16.6792 19.4906 16.7565 19.375C16.8338 19.2594 16.875 19.1234 16.875 18.9844C16.875 18.7979 16.8009 18.6191 16.6691 18.4872C16.5372 18.3553 16.3584 18.2812 16.1719 18.2812Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M32.3438 4.21875V12.6562" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M29.5312 1.40625C30.2772 1.40625 30.9925 1.70257 31.52 2.23001C32.0474 2.75746 32.3438 3.47283 32.3438 4.21875" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M4.21875 1.40625H29.5312" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M1.40625 4.21875C1.40625 3.47283 1.70257 2.75746 2.23001 2.23001C2.75746 1.70257 3.47283 1.40625 4.21875 1.40625" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M1.40625 23.9062V4.21875" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M4.21875 26.7188C3.47283 26.7187 2.75746 26.4224 2.23001 25.895C1.70257 25.3675 1.40625 24.6522 1.40625 23.9062" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M9.84375 26.7188H4.21875" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M9.84375 35.1562V26.7188" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M15.4688 30.9375L9.84375 35.1562" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M43.5938 35.1562H37.9688V43.5938L29.5312 35.1562H21.0938V18.2812H43.5938V35.1562Z" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M32.3438 23.9062V29.5312" stroke="#0069FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </g> <defs> <clipPath id="clip0"> <rect width="45" height="45" fill="white"/> </clipPath> </defs> </symbol>
  242. <symbol id="navbar-search" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"></path></symbol>
  243. <symbol id="navbar-logomark" viewBox="65.2 173.5 180 180" fill="currentColor"><path d="M155.2,351.7v-34.2c36.2,0,64.3-35.9,50.4-74c-5.1-14.1-16.4-25.4-30.5-30.5c-38.1-13.8-74,14.2-74,50.4l0,0H67c0-57.7,55.8-102.7,116.3-83.8c26.4,8.3,47.5,29.3,55.7,55.7C257.9,295.9,213,351.7,155.2,351.7z"/> <polygon points="155.3,317.6 121.3,317.6 121.3,283.6 121.3,283.6 155.3,283.6 155.3,283.6"/> <polygon points="121.3,343.8 95.1,343.8 95.1,343.8 95.1,317.6 121.3,317.6"/> <path d="M95.1,317.6H73.2l0,0v-21.9l0,0h21.9l0,0V317.6z"/></symbol>
  244. <symbol id="navbar-hubforgood" viewBox="6 6 30 30" width="30" height="30" fill="none" stroke="currentColor" stroke-width="1.5"><circle class="cls-3" cx="21" cy="21.03" r="8.92"/><path class="cls-3" d="M12.08,21a8.94,8.94,0,0,1,8.6-8.92"/><path class="cls-3" d="M29.92,21a9.18,9.18,0,0,1-2.61,6.37A9,9,0,0,1,20.75,30"/><path class="cls-3" d="M21,25.36S16.35,22.69,16.35,20a2.3,2.3,0,0,1,4.59,0h0a2.28,2.28,0,0,1,2.29-2.29A2.25,2.25,0,0,1,25.52,20C25.65,22.69,21,25.36,21,25.36Z"/><path class="cls-3" d="M7.43,20.84A13.49,13.49,0,0,1,20.68,7.46"/><path class="cls-3" d="M34.57,20.91a13.57,13.57,0,0,1-3.95,9.68,13.35,13.35,0,0,1-9.68,3.95"/><path class="cls-3" d="M20.87,34.6a13.42,13.42,0,0,1-9.49-4,13.64,13.64,0,0,1-4-9.81l4.65.13a8.94,8.94,0,0,0,2.61,6.31,9.09,9.09,0,0,0,6.06,2.61Z"/><path class="cls-3" d="M29.92,21a9.06,9.06,0,0,0-2.61-6.31,8.89,8.89,0,0,0-6.63-2.61V7.4a13.76,13.76,0,0,1,9.88,3.95,13.42,13.42,0,0,1,3.95,9.49Z"/></symbol>
  245. <symbol id="navbar-write4do" viewBox="0 0 30 30" fill="none" stroke="currentColor"> <path d="M16.3063 17.67L11.6663 18.3338L12.3288 13.6925L24.2613 1.76002C24.7887 1.23257 25.5041 0.936249 26.25 0.936249C26.6194 0.936249 26.9851 1.009 27.3263 1.15034C27.6675 1.29168 27.9776 1.49885 28.2388 1.76002C28.4999 2.02118 28.7071 2.33123 28.8484 2.67246C28.9898 3.01369 29.0625 3.37942 29.0625 3.74877C29.0625 4.11811 28.9898 4.48384 28.8484 4.82507C28.7071 5.1663 28.4999 5.47635 28.2388 5.73752L16.3063 17.67Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M22.935 3.08624L26.9125 7.06374" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M23.4375 17.8125V27.1875C23.4375 27.6848 23.24 28.1617 22.8883 28.5133C22.5367 28.865 22.0598 29.0625 21.5625 29.0625H2.8125C2.31522 29.0625 1.83831 28.865 1.48667 28.5133C1.13504 28.1617 0.9375 27.6848 0.9375 27.1875V8.4375C0.9375 7.94022 1.13504 7.46331 1.48667 7.11167C1.83831 6.76004 2.31522 6.5625 2.8125 6.5625H12.1875" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> </symbol>
  246. <symbol id="navbar-hacktoberfest" viewBox="0 0 30 30" fill="none" stroke="currentColor"> <path d="M19.2063 24.9918L16.5714 22.3569V14.4854L13.986 17.0708V23.5755L12.5615 25L11.1371 23.5591V8.44175L10.7419 8.04652L8.93042 9.8662L8 8.94401L11.9358 5.00823L11.944 5.01647L12.1005 5.16468L13.9778 7.04199V13.8431L16.5632 11.2577V8.42528L15.2705 7.12433L17.3948 5L19.4286 7.03376V20.9572L20.4249 21.9535L21.6352 20.7431L22.5492 21.6571L19.2063 24.9918Z" fill="currentcolor"/> <rect x="0.75" y="0.75" width="28.5" height="28.5" rx="2.25" stroke-width="1.5" stroke="currentColor"/> </symbol>
  247. <symbol id="navbar-build" viewBox="0 0 16 16" fill="none" stroke="currentColor"> <path d="M1.5 14.5C1.23478 14.5 0.98043 14.3946 0.792893 14.2071C0.605357 14.0196 0.5 13.7652 0.5 13.5V2.57667C0.500879 2.29139 0.614596 2.01804 0.81632 1.81632C1.01804 1.6146 1.29139 1.50088 1.57667 1.5H14.4287C14.7125 1.50088 14.9845 1.61403 15.1852 1.81476C15.386 2.01548 15.4991 2.28747 15.5 2.57133V13.4233C15.4991 13.7086 15.3854 13.982 15.1837 14.1837C14.982 14.3854 14.7086 14.4991 14.4233 14.5H1.5Z" stroke-linecap="round" stroke-linejoin="round"/> <path d="M15.5 4.5H0.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M11 7.5L13 9.5L11 11.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5 7.5L3 9.5L5 11.5" stroke-linecap="round" stroke-linejoin="round"/> <path d="M9 7.5L7 11.5" stroke-linecap="round" stroke-linejoin="round"/> </symbol>
  248. </svg>
  249. </div>
  250. <nav class="navbar" role="navigation" aria-label="Navigation" data-js="global-navbar">
  251. <ul role="menubar" class="utility">
  252. <li role="banner" data-flex="grow" data-show="always" data-js="global-navbar-banner">
  253. </li>
  254. <li role="menuitem">
  255. <a href="/products/">Products</a>
  256. </li>
  257. <li role="menuitem">
  258. <a href="/pricing/">Pricing</a>
  259. </li>
  260. <li role="menuitem" aria-haspopup="true" tabindex="0">
  261. <span class="expander">Docs</span>
  262. <div role="menuitem" class="mini" aria-expanded="false">
  263. <ul role="menu">
  264. <li role="menuitem">
  265. <a href="/docs/">Product Docs</a>
  266. </li>
  267. <li role="menuitem">
  268. <a href="https://developers.digitalocean.com/documentation/">API Docs</a>
  269. </li>
  270. </ul>
  271. </div>
  272. </li>
  273. <li role="menuitem" aria-haspopup="true" tabindex="0">
  274. <span class="expander">Sign in</span>
  275. <div role="menuitem" class="mini" aria-expanded="false">
  276. <header>Sign in to</header>
  277. <ul role="menu">
  278. <li role="menuitem">
  279. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  280. <use xlink:href="#navbar-community_icon"></use>
  281. </svg>
  282. <a id="log-in" href="/community/auth/digitalocean">Community</a>
  283. </li>
  284. <li role="menuitem">
  285. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  286. <use xlink:href="#navbar-control_panel_icon"></use>
  287. </svg>
  288. <a href="https://cloud.digitalocean.com/registrations/new">Control Panel</a>
  289. </li>
  290. </ul>
  291. </div>
  292. </li>
  293. </ul>
  294. <ul role="menubar" class="primary">
  295. <li role="menuitem" data-show="always" class="logo-square">
  296. <a href="https://www.digitalocean.com/">
  297. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" shape-rendering="auto">
  298. <use xlink:href="#navbar-logomark"></use>
  299. </svg>
  300. </a>
  301. </li>
  302. <li role="menuitem" data-show="always">
  303. <a title="DigitalOcean Community Home" class="home" href="/community">
  304. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="120px" height="24px"
  305. shape-rendering="auto">
  306. <use xlink:href="#navbar-community_logo"></use>
  307. </svg>
  308. </a> </li>
  309. <li role="menuitem">
  310. <a data-activatable="true" href="/community/tutorials">Tutorials</a>
  311. </li>
  312. <li role="menuitem">
  313. <a data-activatable="true" href="/community/questions">Questions</a>
  314. </li>
  315. <li role="menuitem" aria-haspopup="true" class="mega_parent" tabindex="0">
  316. <span class="expander">Get Involved</span>
  317. <div role="menuitem" class="mega" aria-expanded="false">
  318. <div class="section column">
  319. <header>Participate</header>
  320. <ul role="menu">
  321. <li role="menuitem">
  322. <a href="https://www.digitalocean.com/community/pages/hub-for-good" class="with_image">
  323. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  324. <use xlink:href="#navbar-hubforgood"></use>
  325. </svg>
  326. <p>
  327. <strong>Hub for Good</strong>
  328. Supporting each other to make an impact
  329. </p>
  330. </a>
  331. </li>
  332. <li role="menuitem">
  333. <a class="with_image" href="/community/pages/write-for-digitalocean">
  334. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  335. <use xlink:href="#navbar-write4do"></use>
  336. </svg>
  337. <p>
  338. <strong>Write for DigitalOcean</strong>
  339. You get paid, we donate to tech non-profits.
  340. </p>
  341. </a> </li>
  342. <li role="menuitem">
  343. <a href="https://hacktoberfest.digitalocean.com" class="with_image">
  344. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  345. <use xlink:href="#navbar-hacktoberfest"></use>
  346. </svg>
  347. <p>
  348. <strong>Hacktoberfest</strong>
  349. Contribute to Open Source
  350. </p>
  351. </a>
  352. </li>
  353. </ul>
  354. </div>
  355. <div class="section column">
  356. <header>
  357. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  358. <use xlink:href="#navbar-build"></use>
  359. </svg>
  360. Build with DigitalOcean
  361. </header>
  362. <ul role="menu" class="indent">
  363. <li role="menuitem">
  364. <a title="Community-built tools and integrations that use the DigitalOcean API" href="/community/tools">Community Tools and Integrations</a>
  365. </li>
  366. <li role="menuitem">
  367. <a href="https://www.digitalocean.com/hatch/" title="Build your startup on DigitalOcean.">
  368. Hatch Startup Program
  369. </a>
  370. </li>
  371. <li role="menuitem">
  372. <a href="https://marketplace.digitalocean.com/vendors/"
  373. title="List your open source One-Click Application in the DigitalOcean Marketplace">
  374. Marketplace Partner Program
  375. </a>
  376. </li>
  377. <li role="menuitem">
  378. <a href="https://www.digitalocean.com/partners/solutions-partners/"
  379. title="Easily deploy & modernize your clients’ infrastructures with the Solutions Partner Program">
  380. Solutions Partner Program
  381. </a>
  382. </li>
  383. <li role="menuitem">
  384. <a href="https://www.digitalocean.com/droplets-for-demos/"
  385. title="DigitalOcean credits to fund research for conference and meetup presentations">
  386. Presentation Grants
  387. </a>
  388. </li>
  389. <li role="menuitem">
  390. <a href="https://github.com/digitalocean"
  391. title="View all the open-source projects that DigitalOcean have on GitHub">
  392. DigitalOcean on GitHub
  393. </a>
  394. </li>
  395. </ul>
  396. </div>
  397. </div>
  398. </li>
  399. <li role="menuitem" data-show="mobile" data-flex="grow" class="right">
  400. <a href="javascript:void(0);" data-js="modal_toggle" data-body-class="mobile_nav_expanded">
  401. <span class="icon-menu-thin"></span>
  402. </a>
  403. </li>
  404. <li role="menuitem" data-flex="grow">
  405. <button id="q" class="search_button">
  406. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" shape-rendering="auto"
  407. width="14px" height="14px">
  408. <use xlink:href="#navbar-search"></use>
  409. </svg>
  410. Search DigitalOcean
  411. <kbd>/</kbd>
  412. </button>
  413. </li>
  414. <li role="menuitem">
  415. <a class="button blue-button small-button" href="/community/auth/digitalocean?display=sessionless+register+button">Sign Up</a>
  416. </li>
  417. </ul>
  418. <div class="mobile_nav_bg" data-js="modal_toggle"></div>
  419. <div class="mobile_nav">
  420. <a data-dismiss='modal' aria-label="close" href="javascript:void(0);" data-js="modal_toggle"><span class="icon-close"></span></a>
  421. <div class="mobile_nav_content">
  422. <header>Community</header>
  423. <ul role="menu">
  424. <li role="menuitem">
  425. <a data-activatable="true" href="/community/tutorials">Tutorials</a>
  426. </li>
  427. <li role="menuitem">
  428. <a data-activatable="true" href="/community/questions">Questions</a>
  429. </li>
  430. <li role="menuitem">
  431. <a href="/community/pages/write-for-digitalocean">Write for Us</a>
  432. </li>
  433. <li role="menuitem">
  434. <a href="https://hacktoberfest.digitalocean.com">Hacktoberfest</a>
  435. </li>
  436. <li role="menuitem">
  437. <a href="/community/tools">Tools</a>
  438. </li>
  439. </ul>
  440. <header>Products</header>
  441. <ul role="menu">
  442. <li role="menuitem">
  443. <a href="https://www.digitalocean.com/">Homepage</a>
  444. </li>
  445. <li role="menuitem">
  446. <a href="https://www.digitalocean.com/pricing">Pricing</a>
  447. </li>
  448. <li role="menuitem">
  449. <a href="https://www.digitalocean.com/products">Product Overview</a>
  450. </li>
  451. <li role="menuitem">
  452. <a href="https://marketplace.digitalocean.com/">Marketplace</a>
  453. </li>
  454. </ul>
  455. <header>Customers</header>
  456. <ul role="menu">
  457. <li role="menuitem">
  458. <a href="https://cloud.digitalocean.com/login">Control Panel</a>
  459. </li>
  460. <li role="menuitem">
  461. <a href="https://www.digitalocean.com/docs/">Documentation</a>
  462. </li>
  463. <li role="menuitem">
  464. <a href="https://www.digitalocean.com/company/contact/#support">Contact Support</a>
  465. </li>
  466. <li role="menuitem">
  467. <a href="https://www.digitalocean.com/company/contact/sales/">Contact Sales</a>
  468. </li>
  469. </ul>
  470. <ul role="menu">
  471. <li role="menuitem" class="mobile-log-in">
  472. <a id="log-in" href="/community/auth/digitalocean">Sign In</a>
  473. </li>
  474. </ul>
  475. </div>
  476. </div>
  477. </nav>
  478. <header>
  479. <div class="legacy-header ">
  480. <div class="flash-container">
  481. </div>
  482. <div class="wrapper">
  483. </div>
  484. </div>
  485. </header>
  486. <div class='wrapper layout-wrapper'>
  487. <div class="section-content section-content-growable content Tutorial-content content-has-mobile-image">
  488. <img alt="How To Remove Docker Images, Containers, and Volumes" title="How To Remove Docker Images, Containers, and Volumes" class="tutorial-image-mobile" src="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/tutorials/images/large/Docker_DigitalOcean.png?1583268440" />
  489. <div class="container tutorial-header">
  490. <div class="featured-items-right-bar">
  491. <h3>Related</h3>
  492. <a href="/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04">
  493. <div class="featured-item-regular" data-js="tutorial">
  494. How To Install Docker Compose on Ubuntu 18.04
  495. <span class="featured-item-category">
  496. <img width="14" height="14" alt="Tutorial" src="/assets/community/tutorials/featured-item-tutorial-icon-bce4d5cc06536a907c48f6663a93392cdf6c5f30677b48439d1164c89fb71ad1.png" />
  497. Tutorial
  498. </span>
  499. </div>
  500. </a> <a href="/community/tutorials/naming-docker-containers-3-tips-for-beginners">
  501. <div class="featured-item-regular" data-js="tutorial">
  502. Naming Docker Containers: 3 Tips for Beginners
  503. <span class="featured-item-category">
  504. <img width="14" height="14" alt="Tutorial" src="/assets/community/tutorials/featured-item-tutorial-icon-bce4d5cc06536a907c48f6663a93392cdf6c5f30677b48439d1164c89fb71ad1.png" />
  505. Tutorial
  506. </span>
  507. </div>
  508. </a> </div>
  509. <img alt="How To Remove Docker Images, Containers, and Volumes" title="How To Remove Docker Images, Containers, and Volumes" class="tutorial-image" src="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/tutorials/images/large/Docker_DigitalOcean.png?1583268440" />
  510. <h4 class="eyebrow">Tutorial</h4>
  511. <h1 class="content-title Tutorial-header">How To Remove Docker Images, Containers, and Volumes</h1>
  512. <span class="meta-section tags">
  513. <a class="tag" href="/community/tags/docker">Docker</a>
  514. </span>
  515. <div class="tutorial-authors-translations">
  516. <div class="tutorial-authors">
  517. <div class="component-collaborators-container">
  518. <ul class="component-collaborators-content">
  519. <li class="collaborator-byline-avatar">
  520. <a href="/community/users/melissaanderson">
  521. <div class="mod-avatar mod-avatar-large"><img class="avatar avatar-large" src="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/users/avatars/large/68930a325bec611115077ff82a88ba57ce370372.png?1469887092" /><span class="mod-star" title="MOD" data-toggle="tooltip" data-container="body"><span class="mod-star-icon"></span></span></div>
  522. </a> </li>
  523. <li class="collaborators-byline-data">
  524. <p class="names">By <a href="/community/users/melissaanderson">Melissa Anderson</a></p>
  525. <span class="meta-section date-views">
  526. <span class="meta-section timestamp"><span class="tutorial-date-text">Updated</span><span class="tutorial-date">December 21, 2017</span></span>
  527. <span class="meta-section pageviews"><span class="icon icon-eye v-mid"></span><span class="views-count v-mid">3.7m</span><span class="sr-only"> views</span></span>
  528. </span>
  529. </li>
  530. </ul>
  531. </div>
  532. </div>
  533. <select name="translation_language" id="translation_language" autocomplete="off" class="large-chosen-dropdown"><option selected="selected" value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes">English</option>
  534. <option value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes-de">Deutsch</option>
  535. <option value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes-es">Español</option>
  536. <option value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes-fr">Français</option>
  537. <option value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes-pt">Português</option>
  538. <option value="/community/tutorials/how-to-remove-docker-images-containers-and-volumes-ru">Русский</option></select>
  539. </div>
  540. </div>
  541. <div class="content-body tutorial-content" data-growable-markdown>
  542. <h2 id="a-docker-cheat-sheet">A Docker Cheat Sheet</h2>
  543. <h3 id="introduction">Introduction</h3>
  544. <p>Docker makes it easy to wrap your applications and services in containers so you can run them anywhere. As you work with Docker, however, it&rsquo;s also easy to accumulate an excessive number of unused images, containers, and data volumes that clutter the output and consume disk space.</p>
  545. <p>Docker gives you all the tools you need to clean up your system from the command line. This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and keeping your system organized by removing unused Docker images, containers, and volumes.</p>
  546. <p><strong>How to Use This Guide:</strong></p>
  547. <ul>
  548. <li>This guide is in cheat sheet format with self-contained command-line snippets</li>
  549. <li>Jump to any section that is relevant to the task you are trying to complete.</li>
  550. </ul>
  551. <p>The command substitution syntax, <code><span class="highlight">command</span> $(<span class="highlight">command</span>)</code>, used in the commands is available in many popular shells such as bash, zsh, and Windows Powershell.</p>
  552. <h2 id="purging-all-unused-or-dangling-images-containers-volumes-and-networks">Purging All Unused or Dangling Images, Containers, Volumes, and Networks</h2>
  553. <p>Docker provides a single command that will clean up any resources — images, containers, volumes, and networks — that are dangling (not associated with a container):</p>
  554. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker system prune
  555. </li></ul></code></pre>
  556. <p>To additionally remove any stopped containers and all unused images (not just dangling images), add the <code>-a</code> flag to the command:</p>
  557. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker system prune -a
  558. </li></ul></code></pre>
  559. <h2 id="removing-docker-images">Removing Docker Images</h2>
  560. <h3 id="remove-one-or-more-specific-images">Remove one or more specific images</h3>
  561. <p>Use the <code>docker images</code> command with the <code>-a</code> flag to locate the ID of the images you want to remove. This will show you every image, including intermediate image layers. When you&rsquo;ve located the images you want to delete, you can pass their ID or tag to <code>docker rmi</code>:</p>
  562. <p><strong>List:</strong></p>
  563. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images -a
  564. </li></ul></code></pre>
  565. <p><strong>Remove:</strong></p>
  566. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rmi <span class="highlight">Image</span> <span class="highlight">Image</span>
  567. </li></ul></code></pre>
  568. <h3 id="remove-dangling-images">Remove dangling images</h3>
  569. <p>Docker images consist of multiple layers. Dangling images are layers that have no relationship to any tagged images. They no longer serve a purpose and consume disk space. They can be located by adding the filter flag, <code>-f</code> with a value of <code>dangling=true</code> to the <code>docker images</code> command. When you&rsquo;re sure you want to delete them, you can use the <code>docker images purge</code> command:</p>
  570. <p><span class='note'><strong>Note:</strong> If you build an image without tagging it, the image will appear on the list of dangling images because it has no association with a tagged image. You can avoid this situation by <a href="https://docs.docker.com/engine/reference/commandline/build/#/tag-image--t">providing a tag</a> when you build, and you can retroactively tag an images with the <a href="https://docs.docker.com/engine/reference/commandline/tag/">docker tag</a> command.<br></span></p>
  571. <p><strong>List:</strong></p>
  572. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images -f dangling=true
  573. </li></ul></code></pre>
  574. <p><strong>Remove:</strong></p>
  575. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images purge
  576. </li></ul></code></pre>
  577. <h3 id="removing-images-according-to-a-pattern">Removing images according to a pattern</h3>
  578. <p>You can find all the images that match a pattern using a combination of <code>docker images</code> and <a href="https://www.digitalocean.com/community/tutorials/using-grep-regular-expressions-to-search-for-text-patterns-in-linux"><code>grep</code></a>. Once you&rsquo;re satisfied, you can delete them by using <code>awk</code> to pass the IDs to <code>docker rmi</code>. Note that these utilities are not supplied by Docker and are not necessarily available on all systems:</p>
  579. <p><strong>List:</strong></p>
  580. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images -a | grep "<span class="highlight">pattern</span>"
  581. </li></ul></code></pre>
  582. <p><strong>Remove:</strong></p>
  583. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images -a | grep "<span class="highlight">pattern</span>" | awk '{print $3}' | xargs docker rmi
  584. </li></ul></code></pre>
  585. <h3 id="remove-all-images">Remove all images</h3>
  586. <p>All the Docker images on a system can be listed by adding <code>-a</code> to the <code>docker images</code> command. Once you&rsquo;re sure you want to delete them all, you can add the <code>-q</code> flag to pass the Image ID to <code>docker rmi</code>:</p>
  587. <p><strong>List:</strong></p>
  588. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker images -a
  589. </li></ul></code></pre>
  590. <p><strong>Remove:</strong></p>
  591. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rmi $(docker images -a -q)
  592. </li></ul></code></pre>
  593. <h2 id="removing-containers">Removing Containers</h2>
  594. <h3 id="remove-one-or-more-specific-containers">Remove one or more specific containers</h3>
  595. <p>Use the <code>docker ps</code> command with the <code>-a</code> flag to locate the name or ID of the containers you want to remove:</p>
  596. <p><strong>List:</strong></p>
  597. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a
  598. </li></ul></code></pre>
  599. <p><strong>Remove:</strong></p>
  600. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rm <span class="highlight">ID_or_Name</span> <span class="highlight">ID_or_Name</span>
  601. </li></ul></code></pre>
  602. <h3 id="remove-a-container-upon-exit">Remove a container upon exit</h3>
  603. <p>If you know when you’re creating a container that you won’t want to keep it around once you’re done, you can run <code>docker run --rm</code> to automatically delete it when it exits.</p>
  604. <p><strong>Run and Remove:</strong></p>
  605. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker run --rm <span class="highlight">image_name</span>
  606. </li></ul></code></pre>
  607. <h3 id="remove-all-exited-containers">Remove all exited containers</h3>
  608. <p>You can locate containers using <code>docker ps -a</code> and filter them by their status: created, restarting, running, paused, or exited. To review the list of exited containers, use the <code>-f</code> flag to filter based on status. When you&rsquo;ve verified you want to remove those containers, using <code>-q</code> to pass the IDs to the <code>docker rm</code> command.</p>
  609. <p><strong>List:</strong></p>
  610. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a -f status=exited
  611. </li></ul></code></pre>
  612. <p><strong>Remove:</strong></p>
  613. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rm $(docker ps -a -f status=exited -q)
  614. </li></ul></code></pre>
  615. <h3 id="remove-containers-using-more-than-one-filter">Remove containers using more than one filter</h3>
  616. <p>Docker filters can be combined by repeating the filter flag with an additional value. This results in a list of containers that meet either condition. For example, if you want to delete all containers marked as either <strong>Created</strong> (a state which can result when you run a container with an invalid command) or <strong>Exited</strong>, you can use two filters:</p>
  617. <p><strong>List:</strong></p>
  618. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a -f status=exited -f status=created
  619. </li></ul></code></pre>
  620. <p><strong>Remove:</strong></p>
  621. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rm $(docker ps -a -f status=exited -f status=created -q)
  622. </li></ul></code></pre>
  623. <h3 id="remove-containers-according-to-a-pattern">Remove containers according to a pattern</h3>
  624. <p>You can find all the containers that match a pattern using a combination of <code>docker ps</code> and <a href="https://www.digitalocean.com/community/tutorials/using-grep-regular-expressions-to-search-for-text-patterns-in-linux">grep</a>. When you&rsquo;re satisfied that you have the list you want to delete, you can use <code>awk</code> and <code>xargs</code> to supply the ID to <code>docker rmi</code>. Note that these utilities are not supplied by Docker and not necessarily available on all systems:</p>
  625. <p><strong>List:</strong></p>
  626. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a | grep "<span class="highlight">pattern</span>”
  627. </li></ul></code></pre>
  628. <p><strong>Remove:</strong></p>
  629. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a | grep "<span class="highlight">pattern</span>" | awk '{print $3}' | xargs docker rmi
  630. </li></ul></code></pre>
  631. <h3 id="stop-and-remove-all-containers">Stop and remove all containers</h3>
  632. <p>You can review the containers on your system with <code>docker ps</code>. Adding the <code>-a</code> flag will show all containers. When you&rsquo;re sure you want to delete them, you can add the <code>-q</code> flag to supply the IDs to the <code>docker stop</code> and <code>docker rm</code> commands:</p>
  633. <p><strong>List:</strong></p>
  634. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker ps -a
  635. </li></ul></code></pre>
  636. <p><strong>Remove:</strong></p>
  637. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker stop $(docker ps -a -q)
  638. </li><li class="line" prefix="$">docker rm $(docker ps -a -q)
  639. </li></ul></code></pre>
  640. <h2 id="removing-volumes">Removing Volumes</h2>
  641. <h3 id="remove-one-or-more-specific-volumes-docker-1-9-and-later">Remove one or more specific volumes - Docker 1.9 and later</h3>
  642. <p>Use the <code>docker volume ls</code> command to locate the volume name or names you wish to delete. Then you can remove one or more volumes with the <code>docker volume rm</code> command:</p>
  643. <p><strong>List:</strong></p>
  644. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker volume ls
  645. </li></ul></code></pre>
  646. <p><strong>Remove:</strong></p>
  647. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker volume rm <span class="highlight">volume_name</span> <span class="highlight">volume_name</span>
  648. </li></ul></code></pre>
  649. <h3 id="remove-dangling-volumes-docker-1-9-and-later">Remove dangling volumes - Docker 1.9 and later</h3>
  650. <p>Since the point of volumes is to exist independent from containers, when a container is removed, a volume is not automatically removed at the same time. When a volume exists and is no longer connected to any containers, it&rsquo;s called a dangling volume. To locate them to confirm you want to remove them, you can use the <code>docker volume ls</code> command with a filter to limit the results to dangling volumes. When you&rsquo;re satisfied with the list, you can remove them all with <code>docker volume prune</code>:</p>
  651. <p><strong>List:</strong></p>
  652. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker volume ls -f dangling=true
  653. </li></ul></code></pre>
  654. <p><strong>Remove:</strong></p>
  655. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker volume prune
  656. </li></ul></code></pre>
  657. <h3 id="remove-a-container-and-its-volume">Remove a container and its volume</h3>
  658. <p>If you created an unnamed volume, it can be deleted at the same time as the container with the <code>-v</code> flag. Note that this only works with <em>unnamed</em> volumes. When the container is successfully removed, its ID is displayed. Note that no reference is made to the removal of the volume. If it is unnamed, it is silently removed from the system. If it is named, it silently stays present.</p>
  659. <p><strong>Remove:</strong></p>
  660. <pre class="code-pre command prefixed"><code><ul class="prefixed"><li class="line" prefix="$">docker rm -v <span class="highlight">container_name</span>
  661. </li></ul></code></pre>
  662. <h2 id="conclusion">Conclusion</h2>
  663. <p>This guide covers some of the common commands used to remove images, containers, and volumes with Docker. There are many other combinations and flags that can be used with each. For a comprehensive guide to what&rsquo;s available, see the Docker documentation for <a href="https://docs.docker.com/engine/reference/commandline/system_prune/"><code>docker system prune</code></a>, <a href="https://docs.docker.com/engine/reference/commandline/rmi/"><code>docker rmi</code></a>, <a href="https://docs.docker.com/engine/reference/commandline/rm/"><code>docker rm</code></a> and <a href="https://docs.docker.com/engine/reference/commandline/volume_rm/"><code>docker volume rm</code></a>. If there are common cleanup tasks you&rsquo;d like to see in the guide, please ask or make suggestions in the comments.</p>
  664. </div>
  665. </div>
  666. <div class="tutorial-footer">
  667. <div class='tutorial-footer-details'>
  668. <div class="hsb--container">
  669. <div class="hsb--content">
  670. <div class="hsb--content-main">
  671. <div class="hsb--undo hsb--hide">
  672. <span class="icon icon-helpfulness-upvoted"></span>
  673. <span class="hsb--question">You rated this helpful.</span>
  674. <button name="button" type="submit" class="hsb--button-down hsb--vote-down-js" data-upvotable-type="Tutorial">Undo</button>
  675. </div>
  676. <div class="hsb--flagging-undo hsb--hide">
  677. <span class="icon icon-helpfulness-flag"></span>
  678. <span class="hsb--question">You reported this tutorial.</span>
  679. <button name="button" type="submit" class="hsb--button-down hsb--unflagging-js">Undo</button>
  680. </div>
  681. <div class="hsb--do">
  682. <span class="hsb--question">Was this helpful?</span>
  683. <button name="button" type="submit" class="hsb--button hsb--vote-up-js" id="submit-upvote-report" data-upvotable-id="2109" data-upvotable-type="Tutorial">Yes</button>
  684. <button name="button" type="submit" class="hsb--button hsb--flagging-js" data-url="/community/tutorials/how-to-remove-docker-images-containers-and-volumes/flag" data-flaggable-id="2109" data-flag-type="no">No</button>
  685. </div>
  686. <div class="hsb--social-and-comments">
  687. <div class="hsb--social-sharing">
  688. <a target="_blank" class="share-popup" href="http://twitter.com/share?text=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;url=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=twshare">
  689. <span class="icon icon-helpfulness-twitter"></span>
  690. </a>
  691. <a target="_blank" class="share-popup" href="https://www.facebook.com/sharer/sharer.php?u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=fbshare">
  692. <span class="icon icon-helpfulness-facebook"></span>
  693. </a>
  694. <a target="_blank" class="share-popup" href="https://news.ycombinator.com/submitlink?t=How%20To%20Remove%20Docker%20Images%2C%20Containers%2C%20and%20Volumes&amp;u=https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes?utm_content=how-to-remove-docker-images-containers-and-volumes&amp;utm_medium=community&amp;utm_source=hnshare">
  695. <span class="icon icon-helpfulness-hacker-news"></span>
  696. </a> </div>
  697. <div class="hsb--comment">
  698. <span class="icon icon-helpfulness-comment"></span>
  699. <strong class="amount">14</strong>
  700. </div>
  701. </div>
  702. </div>
  703. </div>
  704. <a class="hsb--flagging-js" data-url="/community/tutorials/how-to-remove-docker-images-containers-and-volumes/flag" data-flaggable-id="2109" data-flag-type="report" href="javascript:void(0);">Report an issue</a>
  705. </div>
  706. <div class="component-collaborators-container-footer">
  707. <div class="component-collaborators-content">
  708. <div class="heading">About the authors</div>
  709. <div class="author">
  710. <a href="/community/users/melissaanderson">
  711. <div class="avatar">
  712. <div class="mod-avatar mod-avatar-large"><img class="avatar avatar-large" src="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/users/avatars/large/68930a325bec611115077ff82a88ba57ce370372.png?1469887092" /><span class="mod-star" title="MOD" data-toggle="tooltip" data-container="body"><span class="mod-star-icon"></span></span></div>
  713. </div>
  714. </a> <div class="byline-info">
  715. <div class="names">
  716. <a href="/community/users/melissaanderson">
  717. Melissa Anderson
  718. </a> </div>
  719. <p> has authored 96 tutorials.</p>
  720. </div>
  721. </div>
  722. <div class="editor-translator">
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. <div class='related-content'>
  728. <div class='section-content panels'>
  729. <h2>Related</h2>
  730. <ul>
  731. <li title="How To Install Docker Compose on Ubuntu 18.04">
  732. <a class="panel" href="/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04">
  733. <h6>Tutorial</h6>
  734. <div class="panel-data">
  735. <h5>How To Install Docker Compose on Ubuntu 18.04</h5>
  736. <p data-clamp>Docker is a great tool for automating the deployment of Linux applications inside software containers, but to take full advantage of its potential each component of an application should run in its own individual container. For complex applications...</p>
  737. </div>
  738. </a>
  739. </li>
  740. <li title="Naming Docker Containers: 3 Tips for Beginners">
  741. <a class="panel" href="/community/tutorials/naming-docker-containers-3-tips-for-beginners">
  742. <h6>Tutorial</h6>
  743. <div class="panel-data">
  744. <h5>Naming Docker Containers: 3 Tips for Beginners</h5>
  745. <p data-clamp>When you create a Docker container, it is assigned a universally unique identifier or UUID. These are essential to avoiding naming conflicts and promoting automation without human intervention. They effectively identify containers to the host and network. However, they take more...</p>
  746. </div>
  747. </a>
  748. </li>
  749. <li title="How To Install Discourse on Ubuntu 20.04">
  750. <a class="panel" href="/community/tutorials/how-to-install-discourse-on-ubuntu-20-04">
  751. <h6>Tutorial</h6>
  752. <div class="panel-data">
  753. <h5>How To Install Discourse on Ubuntu 20.04</h5>
  754. <p data-clamp>Discourse is an open-source discussion platform. You can use Discourse as a mailing list, a discussion forum, or a long-form chat room. In this tutorial, you will install Discourse in an isolated environment using Docker on Ubuntu 20.04.</p>
  755. </div>
  756. </a>
  757. </li>
  758. <li title="How To Scale and Secure a Django Application with Docker, Nginx, and Let&#39;s Encrypt">
  759. <a class="panel" href="/community/tutorials/how-to-scale-and-secure-a-django-application-with-docker-nginx-and-let-s-encrypt">
  760. <h6>Tutorial</h6>
  761. <div class="panel-data">
  762. <h5>How To Scale and Secure a Django Application with Docker, Nginx, and Let&#39;s Encrypt</h5>
  763. <p data-clamp>In cloud-based environments, there are multiple ways to scale and secure a Django application. By scaling horizontally, and running several copies of your app, you can build a more fault-tolerant and highly-available system, while also…</p>
  764. </div>
  765. </a>
  766. </li>
  767. </ul>
  768. </div>
  769. </div>
  770. <div class='looking-for-an-answer'>
  771. <div class='section-content'>
  772. <h4>Still looking for an answer?</h4>
  773. <div class="lfa--actions">
  774. <a href="/community/questions/new?tags=Docker"
  775. class="lfa--action-box">
  776. <span class="icon icon-look-for-answer-question"></span>
  777. Ask a question
  778. </a>
  779. <a href="javascript:void(0)" class="lfa--action-box use-universal-search-js">
  780. <span class="icon icon-look-for-answer-search-thin"></span>
  781. Search for more help
  782. </a>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. <div class="content-comments">
  788. <div class="section-content">
  789. <div class="tutorial commentable" id="tutorial_2109">
  790. <div class="comments-header">
  791. <h4 class="comments-count">
  792. <span>14 Comments</span>
  793. </h4>
  794. </div>
  795. <div class="response response-form no-avatar">
  796. <div class="js-display-on-error flash error hidden"></div>
  797. <form class="content-form disabled-form" id="new_comment" action="/community/tutorials/how-to-remove-docker-images-containers-and-volumes/comments" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="&#x2713;" />
  798. <textarea name="comment[content]" id="comment_content" placeholder="Leave a comment..." class="js-comment-content tutorial-comment-field" data-markdown="true">
  799. </textarea>
  800. <div class="log-in-notice "><a href="/community/auth/digitalocean">Sign In to Comment</a></div>
  801. <div class='clearfix'></div>
  802. </form>
  803. </div>
  804. <div class="comments">
  805. <ul class="response-list">
  806. <a class="js-click-on-load hidden" rel="nofollow" data-remote="true" href="/community/tutorials/how-to-remove-docker-images-containers-and-volumes/comments">Load</a>
  807. </ul>
  808. <div class='comments-spinner'><div class="spinner spinner-large">
  809. <div class="bounce1"></div>
  810. <div class="bounce2"></div>
  811. <div class="bounce3"></div>
  812. </div>
  813. </div>
  814. </div>
  815. <div class='load-more-container'></div>
  816. </div>
  817. </div>
  818. </div>
  819. <div class="creative-commons">
  820. <a class="creative-commons-image" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"><img rel="license" alt="Creative Commons License" src="/assets/community/creativecommons-027bb7f065acf05ba3c0f84a040d2da641648afc81daa6ff5570301d4998bbb6.png" /></a>
  821. <div class="license-text">This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.</div>
  822. </div>
  823. <div class="clearfix"></div>
  824. </div>
  825. <footer>
  826. <section>
  827. <a href="https://www.digitalocean.com/community/pages/write-for-digitalocean" class="panel_with_image">
  828. <div class="photo_wrap">
  829. <img class="photo" src="https://images.prismic.io/digitalocean/70910e9fdeb57be46aaa209ce8d9b4dc8e117fab_w4do2.jpg?auto=compress,format" alt="">
  830. </div>
  831. <span class="heading">Become a contributor</span>
  832. <p>
  833. You get paid; we donate to tech nonprofits.
  834. </p>
  835. </a>
  836. <a href="https://www.digitalocean.com/community/newsletter" class="panel_with_image">
  837. <div class="photo_wrap">
  838. <img class="photo" src="https://images.prismic.io/digitalocean/ca12c951cc76f33037f3384bba9942545d160d82_iaan_illo.jpg?auto=compress,format" alt="">
  839. </div>
  840. <span class="heading">Get our biweekly newsletter</span>
  841. <p>
  842. Sign up for Infrastructure as a Newsletter.
  843. </p>
  844. </a>
  845. <a href="https://www.digitalocean.com/community/pages/hub-for-good" class="panel_with_image">
  846. <div class="photo_wrap">
  847. <img class="photo" src="https://images.prismic.io/digitalocean/21ab4275-bcf3-42ac-b148-6f81d516ca1d_Twitter_graphic.png?auto=compress,format&amp;rect=0,61,1024,387&amp;w=370&amp;h=140" alt="">
  848. </div>
  849. <span class="heading">Hub for Good</span>
  850. <p>
  851. Working on improving health and education, reducing inequality, and spurring economic growth? We&#39;d like to help.
  852. </p>
  853. </a>
  854. </section>
  855. <section class="slim ">
  856. <span class="heading">Featured on Community</span>
  857. <a href="https://www.digitalocean.com/community/curriculums/kubernetes-for-full-stack-developers">Kubernetes Course</a>
  858. <a href="https://www.digitalocean.com/community/tutorial_series/how-to-code-in-python-3">Learn Python 3</a>
  859. <a href="https://www.digitalocean.com/community/tutorials/machine-learning-projects-python-a-digitalocean-ebook">Machine Learning in Python</a>
  860. <a href="https://www.digitalocean.com/community/tutorials/how-to-write-your-first-program-in-go">Getting started with Go</a>
  861. <a href="https://www.digitalocean.com/community/tutorials/an-introduction-to-kubernetes">Intro to Kubernetes</a>
  862. <hr>
  863. <span class="heading">DigitalOcean Products</span>
  864. <a href="https://www.digitalocean.com/products/droplets/">Droplets</a>
  865. <a href="https://www.digitalocean.com/products/managed-databases/">Managed Databases</a>
  866. <a href="https://www.digitalocean.com/products/kubernetes/">Managed Kubernetes</a>
  867. <a href="https://www.digitalocean.com/products/spaces/">Spaces Object Storage</a>
  868. <a href="https://marketplace.digitalocean.com/">Marketplace</a>
  869. </section>
  870. <section class="product">
  871. <a class="copy" href="/products">
  872. <h3>Welcome to the developer cloud</h3>
  873. <p>DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.</p>
  874. <span class="link_text">Learn More</span>
  875. </a>
  876. <div class="feature">
  877. <a class="img_wrap" href="/products">
  878. <img class="photo" src="https://images.prismic.io/digitalocean/95c1215227aa7f39f2bd23076de28feb969741c7_cloud.digitalocean.com_projects_63f9252f-652b-4645-9c0c-bee96f2bc503_resources_ic0ce81-2.png?auto=compress,format" alt="DigitalOcean Cloud Control Panel">
  879. </a>
  880. </div>
  881. </section>
  882. <section class="dark">
  883. <div class="vlist grow">
  884. <a href="https://www.digitalocean.com">
  885. <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50">
  886. <title>DigitalOcean Homepage</title>
  887. <g fill="#0080FF" fill-rule="evenodd">
  888. <path
  889. d="M24.9153 50v-9.661c10.226 0 18.1638-10.1413 14.2372-20.904-1.4406-3.983-4.6327-7.1751-8.6158-8.6158C19.774 6.921 9.6327 14.8305 9.6327 25.0565H0C0 8.7571 15.7627-3.9548 32.8531 1.3842c7.4576 2.3446 13.418 8.2768 15.7345 15.7344C53.9266 34.2373 41.2429 50 24.9153 50">
  890. </path>
  891. <path
  892. d="M15.339 40.3672h9.6045v-9.6045H15.339zM7.9379 47.7684h7.401v-7.4012H7.938zM1.7514 40.3672H7.938v-6.1864H1.7514z">
  893. </path>
  894. </g>
  895. </svg>
  896. </a>
  897. <br><br>
  898. © <script type="text/javascript">
  899. document.write(new Date().getFullYear());
  900. </script> DigitalOcean, LLC. All rights reserved.
  901. </div>
  902. <div class="vlist">
  903. <span class="heading">Company</span>
  904. <ul>
  905. <li>
  906. <a href="https://www.digitalocean.com/about/">About</a>
  907. </li>
  908. <li>
  909. <a href="https://www.digitalocean.com/about/leadership/">Leadership</a>
  910. </li>
  911. <li>
  912. <a href="https://www.digitalocean.com/blog/">Blog</a>
  913. </li>
  914. <li>
  915. <a href="https://www.digitalocean.com/careers/">Careers</a>
  916. </li>
  917. <li>
  918. <a href="https://www.digitalocean.com/partners/">Partners</a>
  919. </li>
  920. <li>
  921. <a href="https://www.digitalocean.com/referral-program/">Referral Program</a>
  922. </li>
  923. <li>
  924. <a href="https://www.digitalocean.com/press/">Press</a>
  925. </li>
  926. <li>
  927. <a href="https://www.digitalocean.com/legal/">Legal</a>
  928. </li>
  929. <li>
  930. <a href="https://www.digitalocean.com/trust/">Security &amp; Trust Center</a>
  931. </li>
  932. </ul>
  933. </div>
  934. <div class="vlist">
  935. <span class="heading">Products</span>
  936. <ul>
  937. <li>
  938. <a href="https://www.digitalocean.com/pricing/">Pricing</a>
  939. </li>
  940. <li>
  941. <a href="https://www.digitalocean.com/products/">Products Overview</a>
  942. </li>
  943. <li>
  944. <a href="https://www.digitalocean.com/products/droplets/">Droplets</a>
  945. </li>
  946. <li>
  947. <a href="https://www.digitalocean.com/products/kubernetes/">Kubernetes</a>
  948. </li>
  949. <li>
  950. <a href="https://www.digitalocean.com/products/managed-databases/">Managed Databases</a>
  951. </li>
  952. <li>
  953. <a href="https://www.digitalocean.com/products/spaces/">Spaces</a>
  954. </li>
  955. <li>
  956. <a href="https://www.digitalocean.com/products/marketplace/">Marketplace</a>
  957. </li>
  958. <li>
  959. <a href="https://www.digitalocean.com/products/load-balancer/">Load Balancers</a>
  960. </li>
  961. <li>
  962. <a href="https://www.digitalocean.com/products/block-storage/">Block Storage</a>
  963. </li>
  964. <li>
  965. <a href="https://developers.digitalocean.com/documentation/">API Documentation</a>
  966. </li>
  967. <li>
  968. <a href="https://www.digitalocean.com/docs">Documentation</a>
  969. </li>
  970. <li>
  971. <a href="https://www.digitalocean.com/docs/release-notes/">Release Notes</a>
  972. </li>
  973. </ul>
  974. </div>
  975. <div class="vlist">
  976. <span class="heading">Community</span>
  977. <ul>
  978. <li>
  979. <a href="https://www.digitalocean.com/community/tutorials">Tutorials</a>
  980. </li>
  981. <li>
  982. <a href="https://www.digitalocean.com/community/questions">Q&amp;A</a>
  983. </li>
  984. <li>
  985. <a href="https://www.digitalocean.com/community/tools">Tools and Integrations</a>
  986. </li>
  987. <li>
  988. <a href="https://www.digitalocean.com/community/tags">Tags</a>
  989. </li>
  990. <li>
  991. <a href="https://ideas.digitalocean.com/">Product Ideas</a>
  992. </li>
  993. <li>
  994. <a href="https://www.digitalocean.com/write-for-donations/">Write for DigitalOcean</a>
  995. </li>
  996. <li>
  997. <a href="https://www.digitalocean.com/droplets-for-demos/">Presentation Grants</a>
  998. </li>
  999. <li>
  1000. <a href="https://www.digitalocean.com/hatch/">Hatch Startup Program</a>
  1001. </li>
  1002. <li>
  1003. <a href="http://store.digitalocean.com/">Shop Swag</a>
  1004. </li>
  1005. <li>
  1006. <a href="https://www.digitalocean.com/research/">Research Program</a>
  1007. </li>
  1008. <li>
  1009. <a href="https://www.digitalocean.com/open-source/">Open Source</a>
  1010. </li>
  1011. <li>
  1012. <a href="https://www.digitalocean.com/community/pages/code-of-conduct">Code of Conduct</a>
  1013. </li>
  1014. </ul>
  1015. </div>
  1016. <div class="vlist">
  1017. <span class="heading">Contact</span>
  1018. <ul>
  1019. <li>
  1020. <a href="https://www.digitalocean.com/support/">Get Support</a>
  1021. </li>
  1022. <li>
  1023. <a href="https://www.digitalocean.com/docs/getting-started/faq/">Trouble Signing In?</a>
  1024. </li>
  1025. <li>
  1026. <a href="https://www.digitalocean.com/company/contact/sales/">Sales</a>
  1027. </li>
  1028. <li>
  1029. <a href="https://www.digitalocean.com/company/contact/#abuse">Report Abuse</a>
  1030. </li>
  1031. <li>
  1032. <a href="https://status.digitalocean.com/">System Status</a>
  1033. </li>
  1034. </ul>
  1035. </div>
  1036. </section>
  1037. </footer>
  1038. <div id='sign-in-modal' class='modal fade mini-modal' style="display: none;">
  1039. <div class='modal-dialog'>
  1040. <div class='modal-content'>
  1041. <div class='modal-header'>
  1042. <h1>Almost there!</h1>
  1043. <a class='close-button' data-dismiss='modal' aria-label="close" href=''><span class='icon icon-close-light'></span></a>
  1044. </div>
  1045. <div class='modal-body'>
  1046. <div class='sign-in-message'>Sign in to your Community account or create a new one below.</div>
  1047. <div class='sign-in-modal-actions'>
  1048. <a class="sign-in-link button blue-button" data-default-url="/community/auth/digitalocean" href="/community/auth/digitalocean">Sign In</a>
  1049. <a class="sign-up-link button blue-button" data-default-url="/community/auth/digitalocean?display=sessionless+register" href="/community/auth/digitalocean?display=sessionless+register">Sign Up</a>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. <script>
  1056. $(function() {
  1057. window.initHelpfulnessActions(2109, '/community/tutorials/how-to-remove-docker-images-containers-and-volumes/flag');
  1058. });
  1059. </script>
  1060. <script>
  1061. $(function() {
  1062. if (!!window.init_sharing) {
  1063. window.init_sharing();
  1064. }
  1065. new window.NewsletterSignup();
  1066. new window.GrowableMarkdown({ target: '[data-growable-markdown]' });
  1067. createTranslationSelection({
  1068. $translation_language: $('#translation_language'),
  1069. });
  1070. });
  1071. </script>
  1072. <script type="application/ld+json">
  1073. {"@context":"http://schema.org","@type":"Article","name":"How To Remove Docker Images, Containers, and Volumes","headline":"How To Remove Docker Images, Containers, and Volumes","alternativeHeadline":"How To Remove Docker Images, Containers, and Volumes","description":"Docker doesn't provide direct cleanup commands, but it does give you all the tools you need to clean up your system from the command line. This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and keeping your system organized by removing unused Docker images, containers, and volumes.","keywords":"Docker,Cheat Sheet","url":"https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes","mainEntityOfPage":{"@type":"WebPage","@id":"https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes"},"dateModified":"2020-04-09T22:34:36Z","inLanguage":"en","accessMode":"textual","accessModeSufficient":"textual","isAccessibleForFree":true,"license":"https://creativecommons.org/licenses/by-nc-sa/4.0/","publishingPrinciples":"https://www.digitalocean.com/community/tutorials/technical-recommendations-and-best-practices-for-digitalocean-s-tutorials","author":[{"@type":"Person","name":"Melissa Anderson","@id":"https://www.digitalocean.com/community/users/melissaanderson"}],"datePublished":"2016-11-17T19:13:04Z","image":{"@type":"ImageObject","url":"https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/tutorials/images/large/Docker_DigitalOcean.png?1583268440","height":375,"width":750},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"http://schema.org/LikeAction","userInteractionCount":"470"},{"@type":"InteractionCounter","interactionType":"http://schema.org/CommentAction","userInteractionCount":"12"}],"sourceOrganization":{"@type":"Organization","name":"DigitalOcean Community","url":"https://www.digitalocean.com/community"},"publisher":{"@type":"Organization","name":"DigitalOcean","url":"https://www.digitalocean.com","logo":{"@type":"ImageObject","url":"https://assets.digitalocean.com/logos/DO_Logo_horizontal_blue.png","width":351,"height":60}},"comment":[{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Thanks! It resolved my issue!"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Nice.. A quick read for the essential cmds.. An add up, use xargs with *-r * flag. Otherwise if left hand side doesn’t give any data which will trigger error -r, –no-run-if-empty if there are no arguments, then do not run COMMAND; if this option is not given, COMMAND will be run at least once docker images -a | grep “pattern” | awk ’{print $3}’ | xargs -r docker rmi"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Thanks for this detailed useful article! For now as a punch line you can add the new alternate way : docker system prune See https://docs.docker.com/engine/reference/commandline/system_prune/ Can’t figure out since this new command released."}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Great article! Seems like it needs some update for recent version of docker (as comments below have also pointed out), but it’s a good point to start."}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"That’s good, thanks for this complete post, it’s appreciated!"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Great article. I see, things about imagenes are very accurate. Thank you"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Thanks for the document. To remove dangling images the command seems to be docker image prune, not docker images purge λ docker image prune WARNING! This will remove all dangling images. Are you sure you want to continue? [y/N] y Deleted Images: [...]"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Super handy article! I think the “Removing images according to a pattern” and “Remove containers according to a pattern” are mixed up. For images: docker images | grep \"pattern\" | awk '{print $3}' | xargs docker rmi and alternatively, I found this one to work better (as multiple tags can link to a same image): docker images | grep \"pattern\" | awk '{print $1\":\"$2}' | xargs docker rmi For containers: docker ps -a | grep \"pattern\" | awk '{print $1}' | xargs docker rm"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"Great article. Thanks!"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"There is -q missing in Remove containers using more than one filter should be docker rm $(docker ps -a -f status=exited -f status=created -q)"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"What about the build in CLI tools docker system prune docker volume prune docker network prune And you are done!"}},{"comment":{"@context":"http://schema.org","@type":"Comment","text":"This was a life saver. I am a rookie at this and it helped greatly. Thanks!"}}]}
  1074. </script>
  1075. <script type="text/javascript">
  1076. $(function() {
  1077. $('.use-universal-search-js').on('click', function () {
  1078. $('#q').trigger('click');
  1079. });
  1080. });
  1081. window.loadUniversalSearchScript( function () {
  1082. var search = new UniversalSearch({
  1083. element_id: 'q',
  1084. search_on_slash: true,
  1085. primary_list: ['quicknav', 'community_consolidated'],
  1086. secondary_list: ['alldocs', 'marketplace'],
  1087. algolia_app_id: "6ZHEUVKJ88",
  1088. algolia_public_key: "c5470567eae7fa1177d43222e18ba086"
  1089. });
  1090. search.start();
  1091. });
  1092. </script>
  1093. <script src="https://do-community.github.io/dns-tool-embed/bundle.js" type="text/javascript"></script>
  1094. <script src="https://do-community.github.io/glob-tool-embed/bundle.js" type="text/javascript"></script>
  1095. </body>
  1096. </html>