Skip to content
This repository was archived by the owner on Dec 14, 2019. It is now read-only.
This repository was archived by the owner on Dec 14, 2019. It is now read-only.

could not open file "C:\.pgpass" for reading: No such file or directory #2

@fzumstein

Description

@fzumstein

I am on Windows Server 2019 with LCOW. When I leave away the password, the docker container comes up correctly:

docker run --name some-postgres -d stellirin/postgres-windows

However, when I include the password, then I get the following error, any ideas?

docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d stellirin/postgres-windows

Error:

$ docker logs some-postgres
Access is denied.
The files belonging to this database system will be owned by user "ContainerUser".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default text search configuration will be set to "english".

Data page checksums are disabled.
initdb: could not open file "C:\.pgpass" for reading: No such file or directory
authMethod: md5
The system cannot find the drive specified.
PostgreSQL init process complete; ready for start up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions