@@ -27,7 +27,7 @@ This guide covers Docker installation, configuration, and initialization options
27
27
### Pull the InfluxDB v1.x image
28
28
29
29
``` bash
30
- docker pull influxdb:{{< latest-patch version= " 1 " > }}
30
+ docker pull influxdb:{{< latest-patch > }}
31
31
```
32
32
33
33
### Start InfluxDB
@@ -37,7 +37,7 @@ Start a basic InfluxDB container with persistent storage:
37
37
``` bash
38
38
docker run -p 8086:8086 \
39
39
-v $PWD /data:/var/lib/influxdb \
40
- influxdb:{{< latest-patch version= " 1 " > }}
40
+ influxdb:{{< latest-patch > }}
41
41
```
42
42
43
43
InfluxDB is now running and available at http://localhost:8086 .
@@ -54,15 +54,15 @@ docker run -p 8086:8086 \
54
54
-e INFLUXDB_REPORTING_DISABLED=true \
55
55
-e INFLUXDB_HTTP_AUTH_ENABLED=true \
56
56
-e INFLUXDB_HTTP_LOG_ENABLED=true \
57
- influxdb:{{< latest-patch version= " 1 " > }}
57
+ influxdb:{{< latest-patch > }}
58
58
```
59
59
60
60
### Using a configuration file
61
61
62
62
Generate a default configuration file:
63
63
64
64
``` bash
65
- docker run --rm influxdb:{{< latest-patch version= " 1 " > }} influxd config > influxdb.conf
65
+ docker run --rm influxdb:{{< latest-patch > }} influxd config > influxdb.conf
66
66
```
67
67
68
68
Start InfluxDB with your custom configuration:
@@ -71,7 +71,7 @@ Start InfluxDB with your custom configuration:
71
71
docker run -p 8086:8086 \
72
72
-v $PWD /influxdb.conf:/etc/influxdb/influxdb.conf:ro \
73
73
-v $PWD /data:/var/lib/influxdb \
74
- influxdb:{{< latest-patch version= " 1 " > }}
74
+ influxdb:{{< latest-patch > }}
75
75
```
76
76
77
77
## Initialize InfluxDB
@@ -91,7 +91,7 @@ docker run -p 8086:8086 \
91
91
-e INFLUXDB_HTTP_AUTH_ENABLED=true \
92
92
-e INFLUXDB_ADMIN_USER=admin \
93
93
-e INFLUXDB_ADMIN_PASSWORD=supersecretpassword \
94
- influxdb:{{< latest-patch version= " 1 " > }}
94
+ influxdb:{{< latest-patch > }}
95
95
```
96
96
97
97
Environment variables for user creation:
@@ -128,7 +128,7 @@ Run with initialization scripts:
128
128
docker run -p 8086:8086 \
129
129
-v $PWD /data:/var/lib/influxdb \
130
130
-v $PWD /init-scripts:/docker-entrypoint-initdb.d \
131
- influxdb:{{< latest-patch version= " 1 " > }}
131
+ influxdb:{{< latest-patch > }}
132
132
```
133
133
134
134
Supported script types:
0 commit comments