Skip to content

Can't run image with securityContext.readOnlyRootFilesystem: true #606

@coreydaley

Description

@coreydaley

When setting the securityContext.readOnlyRootFilesystem: true on the container, the container fails to run, failing at https://github.com/sclorg/postgresql-container/blob/master/16/root/usr/share/container-scripts/postgresql/common.sh#L196-L205 while trying to create the /var/lib/pgsql/passwd file.

It looks like the bitnami postgresql container (https://github.com/bitnami/containers/tree/main/bitnami/postgresql) does not have the same issue and also has the readOnlyRootFilesystem set to true by default.

We are running the container on OCP 4, do you have any recommendations for working around this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions