Run docker prune every time docker updates
This commit is contained in:
parent
565b902df1
commit
523dc563b3
|
@ -145,7 +145,6 @@ update() {
|
||||||
{%@@ if profile == "Moria" @@%}
|
{%@@ if profile == "Moria" @@%}
|
||||||
repo
|
repo
|
||||||
docker-update
|
docker-update
|
||||||
docker system prune --volumes -a
|
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
plugins
|
plugins
|
||||||
}
|
}
|
||||||
|
@ -172,6 +171,7 @@ update() {
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
docker system prune -af --volumes
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in a new issue