2019-06-13 10:00:24 -07:00

19 lines
244 B
Bash
Executable File

#!/usr/bin/env bash
#
# Stops local metrics
#
set -e
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