no matching entries in passwd file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

no matching entries in passwd file

Daulat Ram-2

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

 

Reply | Threaded
Open this post in threaded view
|

Re: no matching entries in passwd file

Fabio Pardi
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


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
>
>  
>