Skip to content

Commit b6e07d2

Browse files
authored
Add more info about permissions
If you still don't understand it, you should not run docker.
1 parent bc02934 commit b6e07d2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ The container runs the standard production php.ini. Some options can be set via
4444

4545
Custom PHP configuration values can be set in a `php.ini` file in the storage volume.
4646

47+
## Permissions
48+
49+
When the container is started without setting an explicit user id (as the compose file suggests), the image will start as
50+
`root` (uid:`0` gid:`0`) and Apache will drop privileges to `www-data` (uid: `33` gid:`33`). Before this happens, the
51+
entrypoint script will use the `root` privileges to recursively chown everything in `/storage` to `33:33`.
52+
53+
When started with any other user id, the whole container will run under that id. You have to ensure that anything mounted
54+
to `/storage` is writable by that uid.
55+
56+
The entry script will print some info about it's effective uid and gid during container start.
57+
4758
## Farming
4859

4960
This image supports farming via the [farmer plugin](https://www.dokuwiki.org/plugin:farmer). To use it, install the

0 commit comments

Comments
 (0)