Skip to content

Commit 5b5ae7d

Browse files
CopilotRadCod3
andcommitted
Improve volume permissions documentation based on code review feedback
Co-authored-by: RadCod3 <[email protected]>
1 parent 1cdee52 commit 5b5ae7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ EOF
4848
docker-compose up -d
4949
```
5050

51-
**Note on Volume Permissions**: If you encounter permission errors when the container tries to write to the OAuth storage directory, you may need to set the correct ownership:
51+
**Note on Volume Permissions**: If you encounter permission errors like `sqlite3.OperationalError: unable to open database file` when the container tries to write to the OAuth storage directory, you may need to set the correct ownership:
5252

5353
```bash
5454
sudo chown -R 65532:65532 ./data/oauth
@@ -397,7 +397,7 @@ services:
397397
398398
When using Docker with OAuth token persistence, you may encounter permission issues where the container cannot write to the mounted volume at `./data/oauth`.
399399

400-
**The Issue**: The container runs as the `nonroot` user (UID 65532) for security. When Docker creates the volume mount from the host, it may have root:root ownership, preventing the nonroot user from writing to the directory.
400+
**The Issue**: The container runs as the `nonroot` user (UID 65532) for security. When Docker creates the volume mount from the host (typically when the host directory doesn't exist before the container starts), it may have root:root ownership, preventing the nonroot user from writing to the directory.
401401

402402
**Symptoms**: If you see errors like `sqlite3.OperationalError: unable to open database file` or other permission-related errors in the container logs, this is likely the cause.
403403

0 commit comments

Comments
 (0)