Merge pull request #5 from coisa/docker_run_alpine

Changing dependency to a lighter image to measure the size of the volume
pull/4/merge
Guido Diepen 2017-11-13 08:49:09 +01:00 zatwierdzone przez GitHub
commit e06225aa07
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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}"