comparison docker/libervia_cont.sh @ 25:25b7452c2d5a

docker: "docker pull" result is not hidden anymore in libervia_cons.sh update, so download progress can be followed
author Goffi <goffi@goffi.org>
date Mon, 20 Oct 2014 16:19:39 +0200
parents f0a59c8f3490
children a5e4c6c2a37d
comparison
equal deleted inserted replaced
24:f0a59c8f3490 25:25b7452c2d5a
255 ;; 255 ;;
256 UPDATE) 256 UPDATE)
257 printf "updating containers...\n" 257 printf "updating containers...\n"
258 errors=0 258 errors=0
259 for CONT in $CONTAINERS data; do 259 for CONT in $CONTAINERS data; do
260 printf "\nupdating $CONT" 260 printf "\n*** updating $CONT ***\n"
261 docker pull $ACCOUNT/$CONT:latest > /dev/null 2>&1 261 docker pull $ACCOUNT/$CONT:latest
262 if [ $? -ne 0 ]; then 262 if [ $? -ne 0 ]; then
263 printf "... Error while updating $ACCOUNT/$CONT" 263 printf "\nError while updating $ACCOUNT/$CONT\n"
264 errors=1 264 errors=1
265 fi 265 fi
266 done 266 done
267 if [ $errors -eq 0 ]; then 267 if [ $errors -eq 0 ]; then
268 printf "\n\nContainers are up-to-date\n" 268 printf "\n\nContainers are up-to-date\n"