mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-01-18 10:08:55 +00:00
Changing dependency to a lighter image to measure the size of volume
This commit is contained in:
parent
23db7997b1
commit
c7d80e8d5c
@ -11,7 +11,7 @@ do
|
||||
|
||||
#Obtain the size of the data volume by starting a docker container
|
||||
#that uses this data volume and determines the size of this data volume
|
||||
docker_volume_size=$(docker run --rm -t -v ${docker_volume_id}:/volume_data ubuntu bash -c "du -hs /volume_data | cut -f1" )
|
||||
docker_volume_size=$(docker run --rm -t -v ${docker_volume_id}:/volume_data alpine sh -c "du -hs /volume_data | cut -f1" )
|
||||
|
||||
echo " Size: ${docker_volume_size}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user