Rm metrics docker even if not running (#4329)
This commit is contained in:
parent
035a364122
commit
4ed0cded9c
|
@ -6,15 +6,14 @@
|
|||
cd "$(dirname "$0")"
|
||||
|
||||
for container in influxdb grafana; do
|
||||
if [ "$(docker ps -q -f name=$container)" ]; then
|
||||
if [ "$(docker ps -q -a -f name=$container)" ]; then
|
||||
(
|
||||
set +e
|
||||
docker kill $container
|
||||
docker rm $container
|
||||
docker rm -f $container
|
||||
exit 0
|
||||
)
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
echo Local metrics stopped
|
||||
exit 0
|
||||
echo Local metrics stopped
|
||||
exit 0
|
Loading…
Reference in New Issue