Difference between revisions of "InfluxDB"
Jump to navigation
Jump to search
(Created page with "sss") |
|||
Line 1: | Line 1: | ||
<pre> | |||
docker run -d -p 8086:8086 --name influxdb \ | |||
-v influx_data:/var/lib/influxdb2 \ | |||
-v influx_config:/etc/influxdb2 \ | |||
-e DOCKER_INFLUXDB_INIT_MODE=setup \ | |||
-e DOCKER_INFLUXDB_INIT_USERNAME=admin \ | |||
-e DOCKER_INFLUXDB_INIT_PASSWORD=Your_Password \ | |||
-e DOCKER_INFLUXDB_INIT_ORG=heatweb \ | |||
-e DOCKER_INFLUXDB_INIT_BUCKET=heatweb \ | |||
-e DOCKER_INFLUXDB_INIT_RETENTION=1w \ | |||
influxdb:2.0 | |||
docker exec influxdb influx auth list \ | |||
--user admin \ | |||
--hide-headers | cut -f 3 | |||
</pre> |
Revision as of 11:59, 18 September 2022
docker run -d -p 8086:8086 --name influxdb \ -v influx_data:/var/lib/influxdb2 \ -v influx_config:/etc/influxdb2 \ -e DOCKER_INFLUXDB_INIT_MODE=setup \ -e DOCKER_INFLUXDB_INIT_USERNAME=admin \ -e DOCKER_INFLUXDB_INIT_PASSWORD=Your_Password \ -e DOCKER_INFLUXDB_INIT_ORG=heatweb \ -e DOCKER_INFLUXDB_INIT_BUCKET=heatweb \ -e DOCKER_INFLUXDB_INIT_RETENTION=1w \ influxdb:2.0 docker exec influxdb influx auth list \ --user admin \ --hide-headers | cut -f 3