InfluxDB 1.7 for ntopng docker install

devspec0psdevspec0ps
1 min read
sudo useradd -rs /bin/false influxdb
sudo mkdir -p /etc/influxdb
sudo mkdir -p /var/lib/influxdb
sudo chown influxdb:influxdb /etc/influxdb/
sudo chown influxdb:influxdb /var/lib/influxdb
docker pull influxdb:1.7
docker run --rm influxdb:1.7 influxd config | sudo tee /etc/influxdb/influxdb.conf > /dev/null
docker run -d --name influxdb -p 8086:8086 \
   -v /etc/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf \
   -v /var/lib/influxdb:/var/lib/influxdb \
   influxdb:1.7
curl -G http://localhost:8086/query --data-urlencode "q=SHOW DATABASES"
0
Subscribe to my newsletter

Read articles from devspec0ps directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

devspec0ps
devspec0ps