aboutsummaryrefslogblamecommitdiffhomepage
path: root/compare-image-size.sh
blob: c3b92f00111ffb510cef91773781f30c8d3fed67 (plain) (tree)
1
2
3
4
5
6
7
8




                                                                                            
                                                      
                                                      
                                             










                                
#!/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