influx_stats/docker_run.sh

9 lines
192 B
Bash
Raw Permalink Normal View History

2023-09-29 15:19:07 +00:00
if [ $( docker ps -a | grep influxdb | wc -l ) -gt 0 ]; then
docker start influxdb
else
docker run --name influxdb -p 8086:8086 \
2022-06-28 11:42:26 +00:00
-v $PWD:/var/lib/influxdb2 \
influxdb:2.0
2023-09-29 15:19:07 +00:00
fi