Entrypoint script always try to modify default config
Closed this issue · 2 comments
xaviergrandmougin commented
Bug Overview
The listen-on-ipv6-by-default script is always trying to modify the /etc/nginx/conf.d/default.conf file, even if the configuration is already correct.
This leads to an error in the logs when using a read-only file system.
Expected Behavior
No attempt to modify /etc/nginx/conf.d/default.conf should be done if the configuration is correct.
Steps to Reproduce the Bug
Run the pod/deployment with ReadOnlyRootFilesystem and server config with listen [::]:8080;
Check the logs.
Environment Details
- Docker 28.3.2
- NGINX Docker unprivileged image 1.29.0
- Kubernetes 1.31.9 with containerd 1.7.27
- debian bookworm
Additional Context
A PR to fix this is proposed.
xaviergrandmougin commented