mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-23 01:25:33 +08:00
[CI] Delete images older than 24h. (#23291)
Signed-off-by: Qiliang Cui <derrhein@gmail.com>
This commit is contained in:
parent
655a09f653
commit
8993073dc1
@ -17,7 +17,7 @@ if [ "$disk_usage" -gt "$threshold" ]; then
|
|||||||
# Remove dangling images (those that are not tagged and not used by any container)
|
# Remove dangling images (those that are not tagged and not used by any container)
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
# Remove unused volumes / force the system prune for old images as well.
|
# Remove unused volumes / force the system prune for old images as well.
|
||||||
docker volume prune -f && docker system prune --force --filter "until=72h" --all
|
docker volume prune -f && docker system prune --force --filter "until=24h" --all
|
||||||
echo "Docker images and volumes cleanup completed."
|
echo "Docker images and volumes cleanup completed."
|
||||||
else
|
else
|
||||||
echo "Disk usage is below $threshold%. No cleanup needed."
|
echo "Disk usage is below $threshold%. No cleanup needed."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user