comparison docker/libervia_cont.sh @ 101:83dacf8fda47

docker (libervia_cont): added -v argument in help message for removing sat_data in restore command
author Goffi <goffi@goffi.org>
date Fri, 26 Feb 2016 20:46:53 +0100
parents d9f9de4bd7a0
children 61ff3bef94a6
comparison
equal deleted inserted replaced
100:d9f9de4bd7a0 101:83dacf8fda47
327 exit 1 327 exit 1
328 fi 328 fi
329 docker run --name $VOLUME_ALIAS $VOLUME_CONT > /dev/null 2>&1 329 docker run --name $VOLUME_ALIAS $VOLUME_CONT > /dev/null 2>&1
330 if [ $? -ne 0 ]; then 330 if [ $? -ne 0 ]; then
331 printf "Can't create $VOLUME_ALIAS container.\n\ 331 printf "Can't create $VOLUME_ALIAS container.\n\
332 If you have an existing one, please remove it with \"docker rm $VOLUME_ALIAS\" (/!\\ it will remove *ALL* your data)\n\n\ 332 If you have an existing one, please remove it with \"docker rm -v $VOLUME_ALIAS\" (/!\\ it will remove *ALL* your data)\n\n\
333 Hint: you can also rename your current data container with \"docker rename $VOLUME_ALIAS new_container_name\"\n" 333 Hint: you can also rename your current data container with \"docker rename $VOLUME_ALIAS new_container_name\"\n"
334 exit 1 334 exit 1
335 fi 335 fi
336 336
337 printf "restoring $1 to $VOLUME_ALIAS container\n\n" 337 printf "restoring $1 to $VOLUME_ALIAS container\n\n"