... but it appears cage treats that string as the name of the executable. It works for my redis container because I don't need to provide arguments. Not providing arguments means psql tries to login as root instead of postgres which yields an authentication failure. I've also tried setting the environment variables POSTGRES_USER and PGPASSWORD but the cage shell command seems to ignore those.
I'd love to be able to set my default shell for my PostgreSQL container to
... but it appears cage treats that string as the name of the executable. It works for my redis container because I don't need to provide arguments. Not providing arguments means
psql
tries to login asroot
instead ofpostgres
which yields an authentication failure. I've also tried setting the environment variablesPOSTGRES_USER
andPGPASSWORD
but the cage shell command seems to ignore those.