From c20fa4925201735909d587cd435561e2d3f5a52b Mon Sep 17 00:00:00 2001 From: William Yeh Date: Wed, 29 Apr 2015 11:49:55 +0800 Subject: Add: a simplest working example. --- compare-image-size.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 compare-image-size.sh (limited to 'compare-image-size.sh') 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 @@ +#!/bin/bash + + +declare -a IMAGES=( 'ansible/ubuntu14.04-ansible:stable' 'ansible/centos7-ansible:stable' \ + "williamyeh/ansible:debian8-onbuild" \ + "williamyeh/ansible:debian7-onbuild" \ + "williamyeh/ansible:ubuntu14.04-onbuild" \ + "williamyeh/ansible:ubuntu12.04-onbuild" \ + "williamyeh/ansible:centos7-onbuild" \ + "williamyeh/ansible:centos6-onbuild" + ) + +for image in "${IMAGES[@]}" ; do + + echo $image + docker pull $image + +done + + +docker images | sort \ No newline at end of file -- cgit v1.2.3