{"id":1463,"date":"2022-02-16T06:42:54","date_gmt":"2022-02-16T06:42:54","guid":{"rendered":"https:\/\/middleware.io\/?p=1463"},"modified":"2023-11-18T08:56:54","modified_gmt":"2023-11-18T08:56:54","slug":"docker-cleanup","status":"publish","type":"post","link":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/","title":{"rendered":"Docker cleanup: How to remove Images, containers, and volumes"},"content":{"rendered":"\n<p>Docker packages software into a complete filesystem with everything needed to run it: code, runtime, system tools, system libraries \u2013 anything you can install on a server. It helps run software anywhere, regardless of its environment.&nbsp;<\/p>\n\n\n\n<div id=\"parent-banner\">\n <div class=\"sticky-banner orange slack-join-blog\" id=\"sticky-banner\">\n   <h4>Join our Slack community to get notified first about upcoming events.<\/h4>\n   <a href=\"https:\/\/join.slack.com\/t\/middlewarepublic\/shared_invite\/zt-24ty2slva-mGgbIzbPm5zQ8GpCCPMeRQ\" target=\"_blank\" rel=\"noopener\"><button class=\"bordered-orange bottom-button white arrow\">Join Slack<\/button><\/a>\n <\/div>\n<\/div>\n\n\n\n<p>However, when working with Docker, you can end up piling up unused images, containers, and datasets that clutter the output and take up disk space. The good news is that Docker offers useful tools to help you clean up your system and stay organized.<\/p>\n\n\n\n<p>Finding the right information on Docker cleanup can be a little back-breaking. This is essential when you <strong>completely remove an image from your system<\/strong> or <strong>reduce your project\u2019s size<\/strong> to fit a shared host. So how do you get started?<\/p>\n\n\n\n<p>This quick tutorial shows the different ways to rid your system of unused and unnecessary Docker files and enable smoother system performance.<\/p>\n\n\n\n<div class=\"table-of-content\" id=\"accordian\">\n<div class=\"toc-heading\" data-toggle=\"collapse\" data-target=\"#toc\">\nTable of Contents\n<\/div>\n<div id=\"toc\" class=\"collapse\" data-parent=\"#accordian\">\n<div class=\"toc-list\">\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-docker-prune-command\">Docker prune command<\/h2>\n\n\n\n<p>Docker has a single command that cleans up all dangling resources, such as images, containers, volumes, and networks, not tagged or connected to a container.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker <\/span> system prune\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>The Docker prune<strong><em> <\/em><\/strong>command automatically removes the resources not associated with a container. This is a quick way to get rid of old images, containers, volumes, and networks.<\/p>\n\n\n\n<p>You can use additional indicators with this command:<\/p>\n\n\n\n<ul><li>Add <strong><em>-a<\/em><\/strong> to display all resources, and<em> <\/em><strong><em>-q<\/em><\/strong><strong> <\/strong>to display only ID<\/li><li>Add<strong><em> -f<\/em><\/strong> to bypass confirmation dialog<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-is-docker-cleanup-important\">Why is Docker cleanup important?&nbsp;<\/h2>\n\n\n\n<p>If you use Docker for development, you probably run <a href=\"https:\/\/middleware.io\/blog\/containerization\/\">multiple containers<\/a>, creating new images and giving a <strong>lot of space on your disk to things you don&#8217;t need<\/strong>.&nbsp;<\/p>\n\n\n\n<p>If you don\u2019t address the storage issue at the right time<strong>, your root directory will quickly fill up<\/strong> the available disk space. When you maximize, your system may not work properly or keep crashing. <\/p>\n\n\n\n<div class=\"container-cta\">\n    <img decoding=\"async\" src=\"\/images\/container-cta.png\" alt=\"Small content CTA\" loading=\"lazy\">\n    <h3>Identify unused large images and delete them in one go with Middleware.<\/h3>\n    <a href=\"https:\/\/app.middleware.io\/auth\/register\/\" target=\"_blank\" rel=\"noopener\"><button class=\"primary white\">Start monitoring<\/button><\/a>\n<\/div>\n\n\n\n<p>This can disrupt daily operations and expose you to data breaches.<strong> <\/strong>If you have any <strong>sensitive data <\/strong>in Docker containers:<\/p>\n\n\n\n<ul><li>Install vital data in local directories<\/li><li>Make a <a href=\"https:\/\/www.geeksforgeeks.org\/backing-up-a-docker-container\/\">backup<\/a> of your files<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-do-you-need-to-clean-up-docker\"><strong>What do you need to clean up Docker?<\/strong><\/h3>\n\n\n\n<p>Getting started with Docker cleanup is simple. You need:<\/p>\n\n\n\n<ul><li><strong>Docker-enabled<\/strong> system<\/li><li>Access to a <strong>terminal or command line<\/strong> (on Ubuntu, Ctrl+Alt+T, on CentOS, Alt+F2)<\/li><li>A user account with <strong>sudo capabilities<\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-clean-up-docker-resources\">How to clean up Docker resources<\/h2>\n\n\n\n<p>When cleaning up Docker, first check all the available resources using the following commands:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker <\/span> container ls\n<span>docker <\/span> image ls\n<span>docker <\/span> volume ls\n<span>docker <\/span> network ls\n<span>docker <\/span> info\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\"><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>Delete all these resources one by one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-removing-docker-images\"><strong>1. Removing Docker images<\/strong><\/h3>\n\n\n\n<p>Put simply, a <a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/image\/\">Docker image<\/a> is a template that includes the program and all the dependencies (multi-layered files to run programs within a container) needed to run it on Docker.<\/p>\n\n\n\n<p>While producing an image, it can go through several revisions. <strong>Old and outdated<\/strong> images clog up your system, eating up storage space and complicating searches.<\/p>\n\n\n\n<p>To delete a Docker image, you first need to list images to obtain information about a specific image, such as its ID and name.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker images <\/span> or docker images -a\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>Now run the following command to delete the selected image (using image ID):<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker rmi <\/span> <span class=\"red\"><image-id><\/image-id><\/span>\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-multiple-images\"><strong>Remove multiple images<\/strong><\/h4>\n\n\n\n<p>If you want to remove multiple images at once, you need image IDs and list them as:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker rmi <\/span> <span class=\"red\"><image-id><\/image-id><\/span> <span class=\"red\"><image-id><\/image-id><\/span> ...\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-all-images-at-once\"><strong>Remove all images at once<\/strong><\/h4>\n\n\n\n<p>If you want to remove all images, simply run:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker rmi <\/span>$(docker images -q) \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-dangling-images\"><strong>Remove dangling images<\/strong><\/h4>\n\n\n\n<p><strong>Layers with no relation to labeled images are called dangling images.<\/strong> They\u2019re outdated and take up unnecessary disk space. You can find them using the docker images command with the <strong><em>-f <\/em><\/strong>filter parameter set to <strong><em>dangling=true.&nbsp;<\/em><\/strong><\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker images -f<\/span> dangling=true\n#Remove\n<span>docker image<\/span> prune\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-removing-docker-images-with-filters\"><strong>Removing Docker images with filters<\/strong><\/h4>\n\n\n\n<p>Docker contains two filters: <strong>until<\/strong> and <strong>label<\/strong>. Although few, they&#8217;re effective resource management tools for Docker.<\/p>\n\n\n\n<p>To delete all resources for a specific period, use the <strong><em>until <\/em><\/strong>filter.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker image prune -a<\/span> -a --filter \"until=12h\"\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>Here <strong><em>-a<\/em><\/strong> removes all the images created in the last 12 hours. Containers, images, and filters can all be used with this command. It accepts Unix timestamps, date-formatted timestamps, and a duration calculated from the machine time.<\/p>\n\n\n\n<p>To delete labeled assets, use the <strong><em>label<\/em> <\/strong>command.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker image prune<\/span> --filter=\"label=unused\"\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>This command simplifies your work. It deletes docker images marked &#8220;unused.&#8221;<\/p>\n\n\n\n<p>&nbsp;A breakdown of label commands:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>label <\/span> = <span class=\"red\"><key><\/key><\/span>\n<span>label <\/span> = <span class=\"red\"><key><\/key><\/span> = <span class=\"red\"><key><\/key><\/span>\n<span>label! <\/span> = <span class=\"red\"><key><\/key><\/span>\n<span>label! <\/span> = <span class=\"red\"><key><\/key><\/span> = <span class=\"red\"><key><\/key><\/span>\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-removing-docker-container\"><strong>2. Removing Docker container&nbsp;<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/container\/\" target=\"_blank\" rel=\"noreferrer noopener\">Docker containers<\/a> prepare different environments for development without the need for installing dependencies or messing anything up. These containers are based on Linux systems with the necessary tools to run applications in a secure environment.&nbsp;<\/p>\n\n\n\n<p>Many containers are produced, tested, and abandoned during the <a href=\"https:\/\/sumatosoft.com\/blog\/what-is-software-development\" target=\"_blank\" rel=\"follow noreferrer noopener\">development lifecycle<\/a>. Therefore, it&#8217;s critical to understand how to <strong>locate and eliminate unwanted containers<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-list-containers\"><strong>List containers<\/strong><\/h4>\n\n\n\n<p>You can use the<strong><em> ls<\/em><\/strong> command with the <strong><em>-a<\/em><\/strong> option to get a list of all containers.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container<\/span> ls -a\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>This command displays a list of active containers, including their IDs, names, and other details.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-stop-containers\"><strong>Stop containers<\/strong><\/h4>\n\n\n\n<p>Run the following command to terminate a <strong>specific container:<\/strong><\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container stop<\/span> [id]\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>You can use the same command to provide multiple container IDs.<\/p>\n\n\n\n<p>Run this command to<strong> stop containers:<\/strong><\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container stop<\/span> $(docker container ls -aq)\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-a-stopped-container\"><strong>Remove a stopped container<\/strong><\/h4>\n\n\n\n<p>Use this command to delete a paused container:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container rm<\/span> [id]\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-stopped-containers\"><strong>Remove stopped containers<\/strong><\/h4>\n\n\n\n<p>To remove stopped containers:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container rm<\/span> $(docker container ls -aq) \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-one-or-more-containers\"><strong>Remove one or more containers<\/strong><\/h4>\n\n\n\n<p>The commands below delete one or more containers:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker rm<\/span> ID_or_Name ID_or_Name \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-all-docker-containers\"><strong>Remove all Docker containers<\/strong><\/h4>\n\n\n\n<p>Use this command to completely wipe and restart Docker.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container stop<\/span> $(docker container ls -aq) &amp;&amp; docker system prune -af --volumes  \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-removing-container-with-filters\"><strong>Removing container with filters<\/strong><\/h4>\n\n\n\n<p>You may also delete the items that don\u2019t fit into a certain category.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker container prune<\/span> --filter=\"label=maintainer=john\"  \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>The above command instructs Docker to delete all containers with the maintainer &#8220;john\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-removing-docker-volumes\"><strong>3. Removing Docker volumes<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/volume_create\/\">Docker volume<\/a> is a feature introduced in Docker Engine 1.13.18 that allows users to create, mount, and share filesystems. With this capability, you can store and mount images at runtime. Common use cases include acting as a working directory and a storage medium for data files or databases in an application container.<\/p>\n\n\n\n<p>To get a list of available Docker volumes, use the following command:<\/p>\n\n\n\n<p><strong>Note: <\/strong>All commands listed below apply to Docker 1.9 and later.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker volume<\/span> ls  \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-one-or-more-specific-volumes\"><strong>Remove one or more specific volumes&nbsp;<\/strong><\/h4>\n\n\n\n<p>You can use this docker volume command to delete one or more volumes:<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker volume rm<\/span> vol_name vol_name2  \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-remove-dangling-volumes\"><strong>Remove dangling volumes&nbsp;<\/strong><\/h4>\n\n\n\n<p>A dangling volume is a volume that exists but is no longer attached to any container.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker volume ls<\/span> -f dangling=true \n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>With docker volume prune, you can get rid of dangling volumes.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker volume<\/span> prune\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-removing-docker-networks\"><strong>4. Removing Docker networks<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/network\/\">Docker networks <\/a>allow containers to freely connect while preventing traffic from leaving the network.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-removing-a-single-network\"><strong>Removing a single network<\/strong><\/h4>\n\n\n\n<p>With the command, docker network ls, you can see a list of existing Docker networks. Use the following command to remove these networks.<\/p>\n\n\n\n<div class=\"code-block content-copy\">\n<div class=\"pre\" id=\"code-blog\"><pre><code>\n<span>docker network rm<\/span> <span class=\"red\">[networkID] <\/span>\n<\/code>\n<\/pre>\n<\/div>\n<a class=\"copy-btn\" id=\"first-button\"><\/a>\n<\/div>\n\n\n\n<p>If you get errors, remove the containers using the network.<\/p>\n\n\n\n<div class=\"full-container-cta orange\">\n    <div class=\"d-flex\">\n        <div class=\"img\">\n            <img decoding=\"async\" src=\"\/images\/full-cta-container.png\" alt=\"CTA banner\" loading=\"lazy\">\n        <\/div>\n        <div class=\"content-cta\">\n            <h3>Get end-to-end visibility for containerized applications.<\/h3>\n            <a href=\"https:\/\/app.middleware.io\/auth\/register\/\" target=\"_blank\" rel=\"noopener\"><button class=\"primary white arrow\">Get started<\/button><\/a>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-middleware-an-end-to-end-cleanup-solution\"><strong>Middleware, an end-to-end cleanup solution&nbsp;<\/strong><\/h3>\n\n\n\n<p style=\"line-height:1.5\">Docker cleanup is essential to save your cloud space and <a href=\"https:\/\/middleware.io\/blog\/cloud-cost-optimization\/\">extra costs<\/a>. It&#8217;s a hassle to check the unwanted resources that are slowing your system constantly.<strong>&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>A platform like <\/strong><a href=\"http:\/\/middleware.io\"><strong>Middleware<\/strong><\/a><strong> can help you manage your resources by automatically informing you in case of a system failure. <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker packages software into a complete filesystem with everything needed to run it: code, runtime, system tools, system libraries \u2013 anything you can install on a server. It helps run software anywhere, regardless of its environment.&nbsp; Join our Slack community to get notified first about upcoming events. Join Slack However, when working with Docker, you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1466,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[487],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker Cleanup: How to Remove Images, Containers &amp; Volumes<\/title>\n<meta name=\"description\" content=\"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker Cleanup: How to Remove Images, Containers &amp; Volumes\" \/>\n<meta property=\"og:description\" content=\"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/\" \/>\n<meta property=\"og:site_name\" content=\"Middleware\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-16T06:42:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-18T08:56:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/stage-site.middleware.io\/wp-content\/uploads\/2022\/02\/Docker-Cleanup-How-to-remove-Docker-Images-Containers-and-Volumes-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"700\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"MW Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"MW Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/\",\"url\":\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/\",\"name\":\"Docker Cleanup: How to Remove Images, Containers & Volumes\",\"isPartOf\":{\"@id\":\"https:\/\/stage-site.middleware.io\/es\/#website\"},\"datePublished\":\"2022-02-16T06:42:54+00:00\",\"dateModified\":\"2023-11-18T08:56:54+00:00\",\"author\":{\"@id\":\"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/4ea1dce092ad60621e4fa874f02ccb92\"},\"description\":\"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.\",\"breadcrumb\":{\"@id\":\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/#breadcrumb\"},\"inLanguage\":\"es-ES\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/stage-site.middleware.io\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conocimientos\",\"item\":\"https:\/\/stage-site.middleware.io\/es\/category\/conocimientos\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker cleanup: How to remove Images, containers, and volumes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/stage-site.middleware.io\/es\/#website\",\"url\":\"https:\/\/stage-site.middleware.io\/es\/\",\"name\":\"Middleware\",\"description\":\"Observability platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/stage-site.middleware.io\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es-ES\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/4ea1dce092ad60621e4fa874f02ccb92\",\"name\":\"MW Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es-ES\",\"@id\":\"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14ba28b020541bea7bc669595bdba058?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14ba28b020541bea7bc669595bdba058?s=96&d=mm&r=g\",\"caption\":\"MW Team\"},\"sameAs\":[\"http:\/\/localhost\/melt\"],\"url\":\"https:\/\/stage-site.middleware.io\/es\/author\/mittalmiddleware-io\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker Cleanup: How to Remove Images, Containers & Volumes","description":"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"es_ES","og_type":"article","og_title":"Docker Cleanup: How to Remove Images, Containers & Volumes","og_description":"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.","og_url":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/","og_site_name":"Middleware","article_published_time":"2022-02-16T06:42:54+00:00","article_modified_time":"2023-11-18T08:56:54+00:00","og_image":[{"width":1300,"height":700,"url":"https:\/\/stage-site.middleware.io\/wp-content\/uploads\/2022\/02\/Docker-Cleanup-How-to-remove-Docker-Images-Containers-and-Volumes-2.jpg","type":"image\/jpeg"}],"author":"MW Team","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"MW Team","Tiempo de lectura":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/","url":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/","name":"Docker Cleanup: How to Remove Images, Containers & Volumes","isPartOf":{"@id":"https:\/\/stage-site.middleware.io\/es\/#website"},"datePublished":"2022-02-16T06:42:54+00:00","dateModified":"2023-11-18T08:56:54+00:00","author":{"@id":"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/4ea1dce092ad60621e4fa874f02ccb92"},"description":"Cleaning Docker can be a big hassle. Learn different methods to remove unnecessary Docker files via Docker command line tool in Linux systems.","breadcrumb":{"@id":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/#breadcrumb"},"inLanguage":"es-ES","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/stage-site.middleware.io\/es\/docker-cleanup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/stage-site.middleware.io\/es\/"},{"@type":"ListItem","position":2,"name":"Conocimientos","item":"https:\/\/stage-site.middleware.io\/es\/category\/conocimientos\/"},{"@type":"ListItem","position":3,"name":"Docker cleanup: How to remove Images, containers, and volumes"}]},{"@type":"WebSite","@id":"https:\/\/stage-site.middleware.io\/es\/#website","url":"https:\/\/stage-site.middleware.io\/es\/","name":"Middleware","description":"Observability platform","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/stage-site.middleware.io\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es-ES"},{"@type":"Person","@id":"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/4ea1dce092ad60621e4fa874f02ccb92","name":"MW Team","image":{"@type":"ImageObject","inLanguage":"es-ES","@id":"https:\/\/stage-site.middleware.io\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14ba28b020541bea7bc669595bdba058?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14ba28b020541bea7bc669595bdba058?s=96&d=mm&r=g","caption":"MW Team"},"sameAs":["http:\/\/localhost\/melt"],"url":"https:\/\/stage-site.middleware.io\/es\/author\/mittalmiddleware-io\/"}]}},"_links":{"self":[{"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/posts\/1463"}],"collection":[{"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/comments?post=1463"}],"version-history":[{"count":14,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/posts\/1463\/revisions"}],"predecessor-version":[{"id":6426,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/posts\/1463\/revisions\/6426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/media\/1466"}],"wp:attachment":[{"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/media?parent=1463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/categories?post=1463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage-site.middleware.io\/es\/wp-json\/wp\/v2\/tags?post=1463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}