1
0
Fork 0

Update disk-check.sh

This commit is contained in:
colin 2024-07-14 14:24:31 +00:00
parent 74fe320361
commit a62f9d450f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ estimate_tmp_size() {
# Function to estimate the size of unused Docker volumes
estimate_docker_volumes_size() {
echo "Estimating the size of unused Docker volumes:"
docker volume ls -qf dangling=true | xargs -I {} docker inspect {} -f '{{ .Name }}: {{ .Size }}' | awk '{ sum += $3 } END { print sum/1024/1024 " MB" }'
docker volume ls -qf dangling=true | xargs -I {} docker volume inspect --format '{{ .Mountpoint }}' {} | xargs -I {} du -sh {} | awk '{ sum += $1 } END { print sum "B" }'
echo
}