Skip to content

Entrypoint script always try to modify default config #330

@xaviergrandmougin

Description

@xaviergrandmougin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions