#!/bin/bash | |
#Restart DFC app | |
docker restart dfc_app0 | |
DFC_APP="$(docker ps -q --filter='name=dfc_app0')" | |
#Wait for initialization of docker container for dfc app | |
for i in {1..10}; do | |
if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ] | |
then | |
echo "DFC app Running" | |
break | |
else | |
echo sleep $i | |
sleep $i | |
fi | |
done |