Skip to content

Commit 560aaa8

Browse files
committed
fix(influxdb-v1): style fixes in v1 initialization
1 parent f3c9669 commit 560aaa8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

influxdb/content.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@ The password for the user configured with `INFLUXDB_WRITE_USER`. If this is unse
630630

631631
If the Docker image finds any files with the extensions `.sh` or `.iql` inside of the `/docker-entrypoint-initdb.d` folder, it will execute them. The order they are executed in is determined by the shell. This is usually alphabetical order.
632632

633-
### Manually Initializing the Database
633+
### Manually Initialize InfluxDB v1
634634

635-
To manually initialize the database and exit, the `/init-influxdb.sh` script can be used directly. It takes the same parameters as the `influxd run` command. As an example:
635+
To manually initialize an InfluxDB v1 database, use `docker run` to call the `/init-influxdb.sh` script directly. The script takes the same initialization options as the `influxd run` command--for example:
636636

637637
```console
638638
docker run --rm \
@@ -645,4 +645,10 @@ docker run --rm \
645645
%%IMAGE%%:1.8 /init-influxdb.sh
646646
```
647647

648-
The above would create the database `db0`, create an admin user with the password `supersecretpassword`, then create the `telegraf` user with your telegraf's secret password. It would then exit and leave behind any files it created in the volume that you mounted.
648+
The command creates the following:
649+
650+
- a database named `db0`
651+
- an admin user `admin` with the password `supersecretpassword`
652+
- a `telegraf` user with the password `secretpassword`
653+
654+
The `-rm` flag causes Docker to exit and delete the container after the script runs. The data and configuration files created during initialization remain in the mounted volume (the host's `$PWD` directory).

0 commit comments

Comments
 (0)