Description
Bug Overview
After the latest update was pushed, trying to start nginx
inside of the image errors.
/ $ nginx
2025/04/25 23:10:00 [notice] 14#14: using the "epoll" event method
2025/04/25 23:10:00 [notice] 14#14: nginx/1.28.0
2025/04/25 23:10:00 [notice] 14#14: built by gcc 14.2.0 (Alpine 14.2.0)
2025/04/25 23:10:00 [notice] 14#14: OS: Linux 6.13.7-orbstack-00283-g9d1400e7e9c6
2025/04/25 23:10:00 [notice] 14#14: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/04/25 23:10:00 [emerg] 15#15: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)
Expected Behavior
Running nginx
is able to start like it did previously in nginxinc/nginx-unprivileged:stable-alpine3.20
/ $ nginx
2025/04/25 23:13:39 [notice] 13#13: using the "epoll" event method
2025/04/25 23:13:39 [notice] 13#13: nginx/1.26.3
2025/04/25 23:13:39 [notice] 13#13: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
2025/04/25 23:13:39 [notice] 13#13: OS: Linux 6.13.7-orbstack-00283-g9d1400e7e9c6
2025/04/25 23:13:39 [notice] 13#13: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/04/25 23:13:39 [notice] 14#14: start worker processes
2025/04/25 23:13:39 [notice] 14#14: start worker process 15
/ $ 2025/04/25 23:13:39 [notice] 14#14: start worker process 16
2025/04/25 23:13:39 [notice] 14#14: start worker process 17
2025/04/25 23:13:39 [notice] 14#14: start worker process 18
2025/04/25 23:13:39 [notice] 14#14: start worker process 19
2025/04/25 23:13:39 [notice] 14#14: start worker process 20
2025/04/25 23:13:39 [notice] 14#14: start worker process 21
2025/04/25 23:13:39 [notice] 14#14: start worker process 22
2025/04/25 23:13:39 [notice] 14#14: start worker process 23
2025/04/25 23:13:39 [notice] 14#14: start worker process 24
2025/04/25 23:13:39 [notice] 14#14: start worker process 25
2025/04/25 23:13:39 [notice] 14#14: start worker process 26
2025/04/25 23:13:39 [notice] 14#14: start worker process 27
2025/04/25 23:13:39 [notice] 14#14: start worker process 28
Steps to Reproduce the Bug
Dockfile contents
FROM nginxinc/nginx-unprivileged:stable-alpine
ENTRYPOINT ["nginx"]
Build and run it with docker run -it $(docker build -q .)
. Observe that the same does not happen if nginxinc/nginx-unprivileged:stable-alpine3.20
is used, but does happen in nginxinc/nginx-unprivileged:stable-alpine3.21
and nginxinc/nginx-unprivileged:stable-alpine
.
Environment Details
Docker version 27.5.1, build 9f9e405
This is happening on my Mac laptop, as well as in the build system in all of our environments.
Additional Context
No response