no matching entries in passwd file

Started by Daulat Ramalmost 7 years ago2 messagesgeneral
Jump to latest
#1Daulat Ram
Daulat.Ram@exponential.com

Hello team,

I have database & users created inside the docker but we are getting connection issue while trying to connect to database using user created in postgres.

docker exec -it -u test b8e7ejb1e31d bash

unable to find user test: no matching entries in passwd file

Regards,

Daulat

#2Fabio Pardi
f.pardi@portavita.eu
In reply to: Daulat Ram (#1)
Re: no matching entries in passwd file

Hi Daulat,

I believe that the error message is referring to the system user, not
the database one.

docker exec --help | grep -- -u
-u, --user string Username or UID (format:
<name|uid>[:<group|gid>])

regards,

fabio pardi

Show quoted text

On 5/21/19 2:42 PM, Daulat Ram wrote:

Hello team,

�

I have �database & users created inside the docker but we are getting
connection issue while trying to connect to database using user created
in postgres.

�

docker exec -it -u test b8e7ejb1e31d bash

unable to find user test: no matching entries in passwd file

Regards,

Daulat

�