Skip to content

Commit aee0b17

Browse files
committed
docs: updates to connection ports and docker volume sections
1 parent 423705d commit aee0b17

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

influxdb/content.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Start the container by using the following command:
6767
docker compose pull && docker compose run influxdb3-core
6868
```
6969

70-
Stop your container by using following command:
70+
Stop the container by using following command:
7171

7272
```bash
7373
docker container ls --filter "name=influxdb3"
@@ -81,7 +81,7 @@ Run this command to start the InfluxDB 3 Core container:
8181
```bash
8282
docker run -d --name influxdb3-core \
8383
-p 8181:8181 \
84-
quay.io/influxdb/influxdb3:latest \
84+
influxdb:3-core \
8585
serve --host-id my-influxdb-node --object-store file --data-dir /var/lib/influxdb3
8686
```
8787

@@ -137,7 +137,7 @@ docker run -d --name influxdb3-enterprise -p 8181:8181 \
137137
--data-dir /var/lib/influxdb3
138138
```
139139

140-
Then, generate an admin token:
140+
Generate an admin token:
141141

142142
```bash
143143
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
158158
To persist data using a Docker-managed volume, run the following command:
159159

160160
```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
166167
```
167168

168169
This command:
@@ -179,7 +180,7 @@ To persist data in a local directory on your host, use the following command:
179180
docker run -d --name influxdb3-core \
180181
-v $PWD/influxdb3-data:/var/lib/influxdb3 \
181182
-p 8181:8181 \
182-
influxdb3:core \
183+
influxdb:3-core \
183184
serve --host-id my-influxdb-node --object-store file --data-dir /var/lib/influxdb3
184185
```
185186

0 commit comments

Comments
 (0)