From a9259664de44b48f66e6de48c85824b1c7d1cccc Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 4 Mar 2022 16:52:30 +0200 Subject: [PATCH] add cloud info --- .../modules/ROOT/pages/admin.adoc | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/CloudComputing_Lab/modules/ROOT/pages/admin.adoc b/CloudComputing_Lab/modules/ROOT/pages/admin.adoc index d609da7..d8593ec 100644 --- a/CloudComputing_Lab/modules/ROOT/pages/admin.adoc +++ b/CloudComputing_Lab/modules/ROOT/pages/admin.adoc @@ -216,6 +216,44 @@ docker ps NETWORK ID docker ps VOLUME ID ---- +== prune - remove obj + +Remove all unused objects. + +*prune* will delete ALL dangling data i.e. containers stopped, volumes without containers and images with no containers + +=== images + +[source,sh] +---- +docker image prune +---- + +TIP: docker rmi $(docker images --filter "dangling=true" -q --no-trunc) + +=== container + +[source,sh] +---- +docker container prune +---- + +=== network + +[source,sh] +---- +docker network prune +---- + +=== volume + +[source,sh] +---- +docker volume prune +---- + + + == repositories