From e393b4aaa65085983dbe1912b4a88a8ecede2561 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 15 Apr 2016 21:33:54 +0100 Subject: [PATCH] name db container after weave container ...so that we can start multiple weaves on a machine w/o them sharing a single db container and tripping over each other as a result. Unbreaks multiweave. Fixes #2177 --- weave | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weave b/weave index 0e39e2fa..f5147995 100755 --- a/weave +++ b/weave @@ -384,6 +384,7 @@ fi RESTART_POLICY="--restart=always" BASE_IMAGE=$DOCKERHUB_USER/weave IMAGE=$BASE_IMAGE:$IMAGE_VERSION +CONTAINER_NAME=${WEAVE_CONTAINER_NAME:-weave} BASE_PLUGIN_IMAGE=$DOCKERHUB_USER/plugin PLUGIN_IMAGE=$BASE_PLUGIN_IMAGE:$IMAGE_VERSION @@ -391,10 +392,9 @@ PLUGIN_CONTAINER_NAME=weaveplugin # Note VOLUMES_CONTAINER which is for weavewait should change when you upgrade Weave VOLUMES_CONTAINER_NAME=weavevolumes-$IMAGE_VERSION # DB files should remain when you upgrade, so version number not included in name -DB_CONTAINER_NAME=weavedb +DB_CONTAINER_NAME=${CONTAINER_NAME}db DOCKER_BRIDGE=${DOCKER_BRIDGE:-docker0} -CONTAINER_NAME=${WEAVE_CONTAINER_NAME:-weave} BRIDGE=weave # This value is overridden when the datapath is used unbridged DATAPATH=datapath