diff options
Diffstat (limited to 'compare-image-size.sh')
-rwxr-xr-x | compare-image-size.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/compare-image-size.sh b/compare-image-size.sh new file mode 100755 index 0000000..9c7c5cd --- /dev/null +++ b/compare-image-size.sh | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | |||
4 | declare -a IMAGES=( 'ansible/ubuntu14.04-ansible:stable' 'ansible/centos7-ansible:stable' \ | ||
5 | "williamyeh/ansible:debian8-onbuild" \ | ||
6 | "williamyeh/ansible:debian7-onbuild" \ | ||
7 | "williamyeh/ansible:ubuntu14.04-onbuild" \ | ||
8 | "williamyeh/ansible:ubuntu12.04-onbuild" \ | ||
9 | "williamyeh/ansible:centos7-onbuild" \ | ||
10 | "williamyeh/ansible:centos6-onbuild" | ||
11 | ) | ||
12 | |||
13 | for image in "${IMAGES[@]}" ; do | ||
14 | |||
15 | echo $image | ||
16 | docker pull $image | ||
17 | |||
18 | done | ||
19 | |||
20 | |||
21 | docker images | sort \ No newline at end of file | ||