@@ -67,7 +67,7 @@ Start the container by using the following command:
67
67
docker compose pull && docker compose run influxdb3-core
68
68
```
69
69
70
- Stop your container by using following command:
70
+ Stop the container by using following command:
71
71
72
72
``` bash
73
73
docker container ls --filter " name=influxdb3"
@@ -81,7 +81,7 @@ Run this command to start the InfluxDB 3 Core container:
81
81
``` bash
82
82
docker run -d --name influxdb3-core \
83
83
-p 8181:8181 \
84
- quay.io/ influxdb/influxdb3:latest \
84
+ influxdb:3-core \
85
85
serve --host-id my-influxdb-node --object-store file --data-dir /var/lib/influxdb3
86
86
```
87
87
@@ -137,7 +137,7 @@ docker run -d --name influxdb3-enterprise -p 8181:8181 \
137
137
--data-dir /var/lib/influxdb3
138
138
```
139
139
140
- Then, generate an admin token:
140
+ Generate an admin token:
141
141
142
142
``` bash
143
143
docker exec -it influxdb3-enterprise influxdb3 create token --admin
@@ -158,11 +158,12 @@ To retain data across container restarts, mount a Docker volume or bind a local
158
158
To persist data using a Docker-managed volume, run the following command:
159
159
160
160
``` bash
161
- docker run -d --name influxdb3-core \
162
- -v influxdb3-data:/var/lib/influxdb3 \
163
- -p 8181:8181 \
164
- influxdb3:core \
165
- serve --host-id my-influxdb-node --object-store file --data-dir /var/lib/influxdb3
161
+ docker run -it \
162
+ --volume /path/on/host:/path/in/container \
163
+ influxdb:3-core influxdb3 serve \
164
+ --node-id my_host \
165
+ --object-store file \
166
+ --data-dir /path/in/container
166
167
```
167
168
168
169
This command:
@@ -179,7 +180,7 @@ To persist data in a local directory on your host, use the following command:
179
180
docker run -d --name influxdb3-core \
180
181
-v $PWD /influxdb3-data:/var/lib/influxdb3 \
181
182
-p 8181:8181 \
182
- influxdb3: core \
183
+ influxdb:3- core \
183
184
serve --host-id my-influxdb-node --object-store file --data-dir /var/lib/influxdb3
184
185
```
185
186
0 commit comments