influx_stats/docker_run.sh

9 lines
192 B
Bash
Executable File

if [ $( docker ps -a | grep influxdb | wc -l ) -gt 0 ]; then
docker start influxdb
else
docker run --name influxdb -p 8086:8086 \
-v $PWD:/var/lib/influxdb2 \
influxdb:2.0
fi