From e4f824fd074d84568ba01c8280cd96b46f4915e6 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Wed, 30 Nov 2016 15:54:14 -0800 Subject: [PATCH] docker system ... --- docs/index.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/index.html b/docs/index.html index 43231253..e6bf8458 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5107,6 +5107,48 @@ docker node update --availability --- +## Disk space management: `docker system df` + +- Shows disk usage for images, containers, and volumes + +- Breaks down between *active* and *reclaimable* categories + +.exercise[ + +- Check how much disk space is used at the end of the workshop: + ```bash + docker system df + ``` + +] + +Note: `docker system` is new in Docker Engine 1.13. + +--- + +## Reclaiming unused resources: `docker system prune` + +- Removes stopped containers + +- Removes dangling images (that don't have a tag associated anymore) + +- Removes orphaned volumes + +- Removes empty networks + +.exercise[ + +- Try it: + ```bash + docker system prune -f + ``` + +] + +Note: `docker system prune -a` will also remove *unused* images. + +--- + class: title # Thanks!
Questions?