fix: do not prune all unused images

This would impact base images related to image building, as well as other images not managed by Dokku directly.
This commit is contained in:
Jose Diaz-Gonzalez
2019-08-02 11:38:08 -04:00
parent 85b41121de
commit c959b236ea
2 changed files with 0 additions and 6 deletions

View File

@@ -649,9 +649,6 @@ docker_cleanup() {
# delete danging images
# shellcheck disable=SC2046
"$DOCKER_BIN" rmi $("$DOCKER_BIN" images -f 'dangling=true' -q) &>/dev/null || true
# delete unused images
"$DOCKER_BIN" image prune --all &>/dev/null || true
fi
}

View File

@@ -39,9 +39,6 @@ scheduler-docker-local-scheduler-docker-cleanup() {
# delete danging images
# shellcheck disable=SC2046
"$DOCKER_BIN" rmi $("$DOCKER_BIN" images -f 'dangling=true' -q) &>/dev/null || true
# delete unused images
"$DOCKER_BIN" image prune --all &>/dev/null || true
fi
}