Official Postgres images for Docker uses two environment variables: POSTGRES_USER and POSTGRES_PASSWORD to parametrize database creation:
https://registry.hub.docker.com/_/postgres/
I expected that the environment variables will be used in the image source:
but there's not trace of them there.
Could you explain how it is made that a user specified with the environment variables is created with a container?