Skip to content

Commit 338bed9

Browse files
Alexei-V-Ivanov-AMDweilong.yu
authored andcommitted
[CI/Build] Adding a forced docker system prune to clean up space (vllm-project#9849)
1 parent ffbd1bc commit 338bed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/run-amd-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ cleanup_docker() {
3131
echo "Disk usage is above $threshold%. Cleaning up Docker images and volumes..."
3232
# Remove dangling images (those that are not tagged and not used by any container)
3333
docker image prune -f
34-
# Remove unused volumes
35-
docker volume prune -f
34+
# Remove unused volumes / force the system prune for old images as well.
35+
docker volume prune -f && docker system prune --force --filter "until=72h" --all
3636
echo "Docker images and volumes cleanup completed."
3737
else
3838
echo "Disk usage is below $threshold%. No cleanup needed."

0 commit comments

Comments
 (0)