|
@ -216,6 +216,44 @@ docker ps NETWORK ID |
|
|
docker ps VOLUME 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 |
|
|
== repositories |
|
|
|
|
|
|
|
|