-
Notifications
You must be signed in to change notification settings - Fork 27
could not open file "C:\.pgpass" for reading: No such file or directory #2
Comments
Oof it's been over a year since I wrote this and I'm not exactly an expert at Windows CMD! The relevant code is at: https://github.com/stellirin/docker-postgres-windows/blob/master/docker-entrypoint.cmd#L67 The file is required because the equivalent code in the original The behaviour you see suggests that the
I'll try to take a look this weekend. |
Thanks for your response! In the meantime I could make the original Linux based image work by using this hack: https://github.com/puppetlabs/pupperware/blob/master/README-windows.md#set-the-volumes-directory-permissions together with a named volume (host mounting wouldnt work). So feel free to close this issue. |
Glad you found a solution that works for you! I'll probably take a look anyway as I'm behind the latest releases. But most of my motivations for this image have disappeared since the release of Docker for WSL2. |
I'll need to look into that, too, yes. Currently doing LCOW via git bash
(which also works great).
…On Thu, 7 Nov 2019, 19:09 Adam Farden, ***@***.***> wrote:
Glad you found a solution that works for you! I'll probably take a look
anyway as I'm behind the latest releases. But most of my motivations for
this image have disappeared since the release of Docker for WSL2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AARJDIB5DUVNDFZNAJIJS4LQSRKVFA5CNFSM4JJX2C72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDNJXVQ#issuecomment-551197654>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARJDIDH4K6GQA36VZAIWXLQSRKVFANCNFSM4JJX2C7Q>
.
|
So I updated the images and ran a quick test of v12 and all works OK here on the latest Windows 10 Pro. Right now I can only imagine that your issue is caused by stricter permissions on Windows Server 2019. I guess I could look at moving this file to the TEMP folder? There's no real reason for this to be written as
|
OK, that's possible. Also possible that there's a difference between Docker EE and Docker Desktop (which I assume you use). |
I am on Windows Server 2019 with LCOW. When I leave away the password, the docker container comes up correctly:
However, when I include the password, then I get the following error, any ideas?
Error:
The text was updated successfully, but these errors were encountered: