docker-postgresql
docker-postgresql copied to clipboard
WARNING: terminal is not fully functional
# 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
?
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.