nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)
Closed this issue · 2 comments
K2ouMais commented
Bug Overview
Hello everyone,
my project using the 1.27.5-alpine-slim image isnt working anymore.
Using the 1.27.4-alpine-slim works without a problem.
This are the docker logs:
2025/04/27 21:41:51 [notice] 1#1: using the "epoll" event method
2025/04/27 21:41:51 [notice] 1#1: nginx/1.27.5
2025/04/27 21:41:51 [notice] 1#1: built by gcc 14.2.0 (Alpine 14.2.0)
2025/04/27 21:41:51 [notice] 1#1: OS: Linux 5.15.167.4-microsoft-standard-WSL2
2025/04/27 21:41:51 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/04/27 21:41:51 [emerg] 1#1: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)
I found this mentioned in your README but I am not overriding the default nginx.conf at all and so I was expecting it to work out of the box.
Expected Behavior
I was expecting that it works like the 1.27.4 version.
Steps to Reproduce the Bug
Start a project using 1.27.5-alpine-slim.
Environment Details
- Version of Docker and method of installation: [e.g. Docker Desktop / Docker Server]
- Version/tag of the NGINX Docker unprivileged image or specific commit: [e.g. 1.4.3/commit hash]
- Target deployment platform: [e.g. OpenShift/Kubernetes/Docker Compose/local cluster/etc...]
- Target OS: [e.g. RHEL 9/Ubuntu 24.04/etc...]
Additional Context
No response
jwesselink commented
See #302
K2ouMais commented
After using the newest images it seems to work again.
Thank you