Skip to content

Commit 31205fc

Browse files
authored
[ci] remove Docker volumes during Azure cleanup (#6760)
1 parent c2f3807 commit 31205fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .vsts-ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ jobs:
6969
# check disk usage
7070
print-diagnostics
7171
# remove old containers, container images, volumes
72-
# ref: https://stackoverflow.com/a/32723127/3986677)
72+
# ref: https://stackoverflow.com/a/32723127/3986677
73+
# ref: https://depot.dev/blog/docker-clear-cache#removing-everything-with-docker-system-prune
7374
echo "---- running 'docker system prune' ----"
7475
/tmp/docker system prune \
7576
--all \
7677
--force \
78+
--volumes \
7779
--filter until=720h
7880
# check disk usage again
7981
print-diagnostics
80-
displayName: clean
82+
displayName: Clean
8183
###########################################
8284
- job: Linux
8385
###########################################

0 commit comments

Comments
 (0)