I would like to use the psql in the postgres image in order to run some queries on the database. But unfortunately when I attach to the postgres container, I got that error
This worked for me:
goto bash :
docker exec -it bash
from bash :
psql -U
or just this one-liner :
docker exec -it psql -U
helps ?