#!/bin/bash -e # # Stops local metrics # cd "$(dirname "$0")" for container in influxdb grafana; do if [ "$(docker ps -q -a -f name=$container)" ]; then ( set +e docker rm -f $container exit 0 ) fi done echo Local metrics stopped exit 0