influxdb
InfluxDB Overview
Secure your stack with a hardened InfluxDB image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
Use the Minimus InfluxDB image to write, query, and process time series data in InfluxDB. InfluxDB is a time-series data platform designed to collect, store, and process metrics and other timestamped data for event monitoring and more.
Try It Out
Take the image for a test run:
docker run -d --rm \
--name influxdb-test \
reg.mini.dev/influxdb \
--node-id node-01 --object-store fileCreate an API token for the server:
docker exec influxdb-test bash -c "influxdb3 create token --admin"The API token will be created with a message such as this:
New token created successfully!
Token: apiv3_T3U_BZT0Ym0lPqzXZjKvpBvVYXeL-nTogzfSaI-gAwZh0iy24WkS99zv6gYZStvjPBlhGBPcLimipsoG1xpCEg
HTTP Requests Header: Authorization: Bearer apiv3_T3U_BZT0Ym0lPqzXZjKvpBvVYXeL-nTogzfSaI-gAwZh0iy24WkS99zv6gYZStvjPBlhGBPcLimipsoG1xpCEg
IMPORTANT: Store this token securely, as it will not be shown again.Write some sample time-series data to a new database (The database is created as part of the command). Before running the command, replace the variable with your own token from the previous step:
docker exec influxdb-test bash -c "influxdb3 write \
--database 'new-database' \
--token '{token}' \
--precision s \
\"home,room=Living\\ Room temp=21.1,hum=35.9,co=0i 1641024000
home,room=Kitchen temp=21.0,hum=34.9,co=0i 1641024000\""The terminal will print the message success.
To see the database you just created run the command below:
docker exec influxdb-test bash -xc "influxdb3 show databases --host http://127.0.0.1:8181 --token {token}"Note: InfluxDB CLI commands vary depending on the image version:
- Refer to Influxdb3 CLI documentation for InfluxDB 3 or newer.
- Refer to v2 documentation for InfluxDB version 2.x.
Technical Considerations
The InfluxDB image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
InfluxDB built by Minimus:
- The image contains the InfluxDB server and Influx client. The entrypoint script can also be used to initialize and upgrade existing installations.
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks. The public image runs as root.
- Listens on port 8086/TCP by default but does not expose the port. The public image listens on and exposes the same port by default.
- The image does not expose a volume by default. The public image exposes the volume
/etc/influxdb2and/var/lib/influxdb2. - Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.