aboutsummaryrefslogtreecommitdiffhomepage
path: root/compare-image-size.sh
blob: c3b92f00111ffb510cef91773781f30c8d3fed67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash


declare -a IMAGES=( 'ansible/ubuntu14.04-ansible:stable' 'ansible/centos7-ansible:stable'  \
         "williamyeh/ansible:debian8-onbuild"        \
         "williamyeh/ansible:ubuntu16.04-onbuild"    \
         "williamyeh/ansible:ubuntu14.04-onbuild"    \
         "williamyeh/ansible:centos7-onbuild"
       )

for image in "${IMAGES[@]}" ; do

    echo $image
    docker pull $image

done


docker images | sort