Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. ➜ ~ docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 14310d9f0ece postgres:9.4 "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 0.0.0.0:5432->5432/tcp postgres
  4.  
  5. ➜ postgres psql --version
  6. psql (PostgreSQL) 9.4.22
  7. ➜ postgres psql -h 127.0.0.1 -p 5432
  8. // hangs
  9.  
  10. ➜ postgres nc -vz localhost 5432
  11. found 0 associations
  12. found 1 connections:
  13. 1: flags=82<CONNECTED,PREFERRED>
  14. outif lo0
  15. src ::1 port 51856
  16. dst ::1 port 5432
  17. rank info not available
  18. TCP aux info available
  19.  
  20. Connection to localhost port 5432 [tcp/postgresql] succeeded!
  21.  
  22. ➜ postgres lsof -n -i :5432 | grep LISTEN
  23. com.docke 13037 steve 27u IPv4 0xd8d4bc5463376f87 0t0 TCP *:postgresql (LISTEN)
  24. com.docke 13037 steve 115u IPv6 0xd8d4bc5462ccdd07 0t0 TCP [::1]:postgresql (LISTEN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement