comparison docker/libervia_cont.sh @ 99:15e317bb602f

docker (libervia_cont): removed instructions about commiting sat_data, as a volume container will not commit data (see https://github.com/docker/docker/issues/7583)
author Goffi <goffi@goffi.org>
date Fri, 26 Feb 2016 17:29:34 +0100
parents c425b8a99a29
children d9f9de4bd7a0
comparison
equal deleted inserted replaced
98:349cbfea2596 99:15e317bb602f
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 $VOLUME_ALIAS\" (/!\\ it will remove *ALL* your data)\n\n\
333 Hint: you can commit your container to avoid risk with \"docker commit $VOLUME_ALIAS your_committed_image_name\"\n\ 333 Hint: you can also rename your current data container with \"docker rename $VOLUME_ALIAS new_container_name\"\n"
334 you can also rename your current data container with \"docker rename $VOLUME_ALIAS new_container_name\"\n"
335 exit 1 334 exit 1
336 fi 335 fi
337 336
338 printf "restoring $1 to $VOLUME_ALIAS container\n\n" 337 printf "restoring $1 to $VOLUME_ALIAS container\n\n"
339 HOST_BACKUP_DIR="$(dirname "$1")" 338 HOST_BACKUP_DIR="$(dirname "$1")"