scripts/docker-cleanup.sh: use "docker system prune"

Do not only clean up dangling images, but also containers, volumes and
networks.

Related: SYS#5827
Change-Id: If441b251de50063f0229d36fb1bc260a4cb1dd87
This commit is contained in:
Oliver Smith 2022-02-11 13:13:15 +01:00
parent 2b77e64c48
commit b5ebf6ea6b
1 changed files with 2 additions and 1 deletions

View File

@ -12,4 +12,5 @@ if [ -n "$CONTAINERS" ]; then
docker rm $CONTAINERS
fi
docker image prune -f
# remove dangling images, containers, volumes, and networks (not tagged or associated with a container)
docker system prune -f