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
I'm creating a dockerized application and noticed that beginning today, the
postgres:latestimage cannot start.Dockerfile:
Version:
Build and run the container.
Output:
If I remove the command
RUN apt-get update && apt-get -y upgradefrom the Dockerfile, the container starts as expected