Skip to content

"/var/lib/postgresql/data/postgresql.conf" contains errors after apt-get update && apt-get upgrade #1073

@higgsaxhh

Description

@higgsaxhh

I'm creating a dockerized application and noticed that beginning today, the postgres:latest image cannot start.

Dockerfile:

FROM postgres:latest

RUN apt-get update && apt-get -y upgrade

Version:

docker --version
Docker version 20.10.14, build a224086

Build and run the container.

Output:

db_1  | The files belonging to this database system will be owned by user "postgres".
db_1  | This user must also own the server process.
db_1  |
db_1  | initdb: error: invalid locale settings; check LANG and LC_* environment variables

If I remove the command RUN apt-get update && apt-get -y upgrade from the Dockerfile, the container starts as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions