comparison docker/libervia_cont.sh @ 102:61ff3bef94a6

docker (libervia_cont): remove volumes from container on "stop" command
author Goffi <goffi@goffi.org>
date Fri, 26 Feb 2016 23:32:07 +0100
parents 83dacf8fda47
children e69883c1ec30
comparison
equal deleted inserted replaced
101:83dacf8fda47 102:61ff3bef94a6
274 done; 274 done;
275 for CONT in $REVERSED; do 275 for CONT in $REVERSED; do
276 printf "\nStopping container $CONT" 276 printf "\nStopping container $CONT"
277 docker stop $CONT > /dev/null 2>&1 || printf "... Error while stopping $CONT\n" 277 docker stop $CONT > /dev/null 2>&1 || printf "... Error while stopping $CONT\n"
278 printf "\rDeleting container $CONT" 278 printf "\rDeleting container $CONT"
279 docker rm $CONT > /dev/null 2>&1 || printf "... Error while removing $CONT\n" 279 docker rm -v $CONT > /dev/null 2>&1 || printf "... Error while removing $CONT\n"
280 done 280 done
281 printf "\n" 281 printf "\n"
282 ;; 282 ;;
283 RESTART) 283 RESTART)
284 printf "restarting containers...\n" 284 printf "restarting containers...\n"