docker-postgresql icon indicating copy to clipboard operation
docker-postgresql copied to clipboard

WARNING: terminal is not fully functional

Open psi-4ward opened this issue 8 years ago • 1 comments

# docker exec -ti postgres psql -U mydb
psql (9.4.7)
Type "help" for help.

mydb=> select * from job;
WARNING: terminal is not fully functional
-  (press RETURN)


# docker exec -ti postgres bash -c 'echo $TERM'
dumb

It seems it comes from missing PAGER:

docker exec -ti postgres bash -c 'PAGER=cat psql -U mydb'

works as expected.

So could we set PAGER=cat?

psi-4ward avatar Apr 22 '16 20:04 psi-4ward

try setting TERM=xterm

docker exec -it postgresql bash -c 'TERM=xterm psql -U postgres gitlabhq_production

or specify -t arg to docker run while launching the postgresql container.

sameersbn avatar Aug 07 '16 13:08 sameersbn