From 59dff53176fc0be55d1aab2511665db9e3cb6045 Mon Sep 17 00:00:00 2001 From: Caule Simon Date: Tue, 28 Nov 2017 15:33:27 +0100 Subject: [PATCH] Don't use docker-compose down to stop containers This delete containers and volume too. Use docker-compose stop who only stop containers --- sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync.sh b/sync.sh index 0f835b37..237d55a7 100755 --- a/sync.sh +++ b/sync.sh @@ -63,7 +63,7 @@ if [ "$1" == "up" ] ; then elif [ "$1" == "down" ]; then print_style "Stopping Docker Compose\n" "info" - docker-compose down + docker-compose stop print_style "Stopping Docker Sync\n" "info" docker-sync stop @@ -86,4 +86,4 @@ else print_style "Invalid arguments.\n" "danger" display_options exit 1 -fi \ No newline at end of file +fi