changeset 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
files docker/libervia_cont.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docker/libervia_cont.sh	Fri Feb 26 20:46:53 2016 +0100
+++ b/docker/libervia_cont.sh	Fri Feb 26 23:32:07 2016 +0100
@@ -276,7 +276,7 @@
             printf "\nStopping container $CONT"
             docker stop $CONT > /dev/null 2>&1  || printf "... Error while stopping $CONT\n"
             printf "\rDeleting container $CONT"
-            docker rm $CONT > /dev/null 2>&1 || printf "... Error while removing $CONT\n"
+            docker rm -v $CONT > /dev/null 2>&1 || printf "... Error while removing $CONT\n"
         done
         printf "\n"
         ;;