forked from colin/disk-space-report
				
			Update disk-check.sh
This commit is contained in:
		
							parent
							
								
									74fe320361
								
							
						
					
					
						commit
						a62f9d450f
					
				| 
						 | 
					@ -31,7 +31,7 @@ estimate_tmp_size() {
 | 
				
			||||||
# Function to estimate the size of unused Docker volumes
 | 
					# Function to estimate the size of unused Docker volumes
 | 
				
			||||||
estimate_docker_volumes_size() {
 | 
					estimate_docker_volumes_size() {
 | 
				
			||||||
    echo "Estimating the size of unused Docker volumes:"
 | 
					    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
 | 
					    echo
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue