

Swarm Kitematic Docker Cloud (formerly Tutum) Docker Datacenter etc. This must be done while logged into the PostgreSQL user account. Make containers easy to use for developers. Looking for any advice on how else to troubleshoot this issue. The bare-bones way to start the server manually is just to invoke postgres directly, specifying the location of the data directory with the -D option, for example: postgres -D /usr/local/pgsql/data which will leave the server running in the foreground. I also checked to see if anything else could possibly be listening on 5432 but it looks like it is only docker ➜ ~ lsof -n -i :5432 | grep LISTENĬom.docke 13037 steve 27u IPv4 0xd8d4bc5463376f87 0t0 TCP *:postgresql (LISTEN)Ĭom.docke 13037 steve 115u IPv6 0xd8d4bc5462ccdd07 0t0 TCP :postgresql (LISTEN) By changing the version from 9.4 to 9, it works like a champ. What is frustrating is that I can successfully ping the container: ➜ ~ nc -vz localhost 5432Ĭonnection to localhost port 5432 succeeded! The Problem No matter how many times I try, it simply cannot start the postgres:9.4 container, erroring out in the way detailed below. There is no log activity in the container that indicates an attempted connection. I have also attempted to use pgAdmin to connect which also is unable to connect. I then use my psql client which I installed via homebrew to attempt to connect and it simply hangs: ➜ ~ psql -version
#Kitematic start a postgres 9.4 container password#
This defines the password which will be assigned to Postgres’ default superuser account.

You must supply a value for the POSTGRESPASSWORD environment variable.
➜ ~ docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESġ4310d9f0ece postgres:9.4 "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 0.0.0.0:5432->5432/tcp postgres Start a PostgreSQL container using the docker run command: docker run -d -name postgres -p 5432:5432 -e POSTGRESPASSWORDTo start my docker container I ran the following command:ĭocker run -d -name postgres -p 5432:5432 -e POSTGRES_PASSWORD=docker postgres:9.4 I am trying to troubleshoot a connection issue between my postgres client and my postgres docker container (locally).
