add force-recreate to docker-compose up

no point in re-using old containers
master
lub 4 years ago
parent 68e1bf0df6
commit d5ca93d001

@ -4,7 +4,7 @@ docker pull docker.io/ceph/daemon:latest-octopus
#start client #start client
cd client cd client
HOSTNAME="$HOSTNAME" docker-compose up -d HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
cd - cd -
@ -15,7 +15,7 @@ shopt -s nullglob
for role_dir in /ceph/m*; do for role_dir in /ceph/m*; do
role_name=$(basename "$role_dir") role_name=$(basename "$role_dir")
cd "$role_name" cd "$role_name"
HOSTNAME="$HOSTNAME" docker-compose up -d HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
cd - cd -
done done
@ -27,7 +27,7 @@ for osd_dir in /ceph/osd_*; do
#create temporary docker-compose.yml #create temporary docker-compose.yml
sed "s/%OSD_ID%/$osd_id/g" osd/docker-compose.yml > docker-compose.yml sed "s/%OSD_ID%/$osd_id/g" osd/docker-compose.yml > docker-compose.yml
HOSTNAME="$HOSTNAME" docker-compose up -d HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
#remove temporary docker-compose.yml #remove temporary docker-compose.yml
rm docker-compose.yml rm docker-compose.yml