Skip to content

Commit 9d9d3b0

Browse files
committed
Add tip re how to rebuild/change the image UID/GID
1 parent 085232b commit 9d9d3b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Most images are built for the `amd64`, `arm32v5` (for Debian), `arm32v6` (for Al
3232

3333
## Troubleshooting Tips
3434

35+
* If you wish to use a different user ID and/or group ID when running the Docker Unprivileged image, rebuild the image using the following Docker build arguments:
36+
37+
```bash
38+
docker build --build-arg UID=<UID> --build-arg GID=<GID> -t nginx-unprivileged .
39+
```
40+
3541
* If you override the default `nginx.conf` file you may encounter various types of error messages:
3642
* To fix `nginx: [emerg] open() "/var/run/nginx.pid" failed (13: Permission denied)`, you have to specify a valid `pid` location by adding the line `pid /tmp/nginx.pid;` at the top level of your config.
3743
* To fix `nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (30: Read-only file system)`, you have to specify a valid location for the various NGINX temporary paths by adding these lines within the `http` context:

0 commit comments

Comments
 (0)