Add more cleanup options.
This commit is contained in:
parent
a3219605e3
commit
14646f42b2
9
run.sh
9
run.sh
@ -137,6 +137,11 @@ while true; do
|
|||||||
--discover
|
--discover
|
||||||
|
|
||||||
# Cleanup any build leftovers
|
# Cleanup any build leftovers
|
||||||
docker system prune --all --force
|
if [[ "${SYSTEM_PRUNE:-false}" == "true" ]]; then
|
||||||
sleep 15
|
docker system prune --all --force
|
||||||
|
fi
|
||||||
|
if [[ "${WEBAPP_IMAGE_PRUNE:-true}" == "true" ]]; then
|
||||||
|
docker image rm -f $(docker image ls --quiet --filter 'reference=laconic-webapp')
|
||||||
|
fi
|
||||||
|
sleep ${CHECK_INTERVAL:-15}
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user