How to execute psql command with netcat on docker instance

前端 未结 0 1554
情话喂你
情话喂你 2021-02-10 12:41

I have 2 docker containers, one of them is postgres. I am trying to call postgres from another one:

nc postgres 5432 -c \'psql -U postgres -t -c "SELECT datn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题