Company
Date Published
Author
Community
Word count
2956
Language
English
Hacker News points
None

Summary

InfluxDB is a time series database used for DevOps monitoring and dashboarding, built in 2013 by InfluxData, and widely deployed in distributed and multicloud environments. Docker can serve as a good fit for InfluxDB due to its virtualization environment that provides an easy way to create, manage, and delete containers on the fly. To install InfluxDB on Docker, one can either prepare their filesystem manually or use scripts to automate the initialization process. The official InfluxDB image is part of the Official Docker Images, which includes Telegraf, Chronograf, and Kapacitor as other tools of the TICK Stack. To run an InfluxDB container, one needs to map volumes from their local filesystem to the container, storing configuration files and data on the host system. The InfluxDB container can be started with the command `docker run -d -p 8086:8086 --user 997:997 --name=influxdb -v /etc/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf -v /var/lib/influxdb:/var/lib/influxdb influxdb config`. After starting the container, one can verify that InfluxDB is correctly running by checking the HTTP API and verifying authentication. Additionally, enabling authentication on InfluxDB requires creating an administrator account using the `influx` command inside the container, followed by updating the configuration file to enable HTTP authentication.