Skip to content

Commit 048f6b3

Browse files
authored
feat: Document volume permissions for InfluxDB Docker
Added instructions for setting volume permissions for InfluxDB Docker container.
1 parent 1075415 commit 048f6b3

File tree

1 file changed

+15
-1
lines changed
  • content/influxdb/v1/introduction/install

1 file changed

+15
-1
lines changed

content/influxdb/v1/introduction/install/docker.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ This guide covers Docker installation, configuration, and initialization options
4444
docker pull influxdb:{{< latest-patch >}}
4545
```
4646

47+
### Volume permissions
48+
49+
> [!Important]
50+
> The InfluxDB Docker container runs as user influxdb with UID/GID 1500.
51+
> When mounting volumes for persistent storage, ensure the mounted directory on the host is owned by UID/GID 1500, or InfluxDB may not have permission to write data.
52+
53+
Set the correct ownership before starting the container:
54+
55+
#### Create the data directory
56+
mkdir -p data
57+
58+
#### Set ownership to UID/GID 1500
59+
sudo chown -R 1500:1500 data
60+
4761
### Start InfluxDB
4862

4963
Start a basic InfluxDB container with persistent storage:
@@ -168,4 +182,4 @@ Replace `<container-name>` with your InfluxDB container name or ID.
168182
Once you have InfluxDB running in Docker, see the [Get started guide](/influxdb/v1/introduction/get-started/) to:
169183
- Create databases
170184
- Write and query data
171-
- Learn InfluxQL basics
185+
- Learn InfluxQL basics

0 commit comments

Comments
 (0)