-
Notifications
You must be signed in to change notification settings - Fork 1.2k
No longer able to accept external connections #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems to be accessible from other containers: $ docker pull postgres
Using default tag: latest
latest: Pulling from library/postgres
Digest: sha256:6c4dc1a323d53ab10726565dd6da34a72dd5f9f9277b45b4022455ab2469fefa
Status: Image is up to date for postgres:latest
$ docker run -d --name some-postgres postgres
$ docker run -it --rm --link some-postgres:postgres postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'
psql (9.5.1)
Type "help" for help.
postgres=# select 1;
?column?
----------
1
(1 row)
postgres=# We have not yet added docs on overriding the config, 😞 If you are replacing the If you have a config that doesn't have a listen address and want to get it to work, you can just add the listen address to the args: $ docker run -d -v /.../my.config:/...sample postgres -o "-c listen_addresses='*'" |
Apologies, you can close this issue out. We had been using 'postgis' which is based on 'postgres', and it appears that's what's causing the breakage for listen_addresses. It turns out we dont use the features from postgis anymore, and I just tried the 9.4 version of your postgres module, and indeed, you are right, we are able to connect remotely |
For this command, to replacing
There is a permission error:
Because owner of But owner of
|
@omidraha that seems like the file you are mounting in is not readable by the postgres user in the container; maybe a |
@yosifkit , Fixed by |
Since commit '@yosifkit yosifkit Merge pull request #127 from infosiftr/listen_addresses' the Docker container is no longer able to accept external connections.
The patch only applies the listen_addresses='*' to the sample postgres.conf file, and since there are no instructions in docs as to how to override this, you end up with a docker container running postres, and able to connect from within the container, but not from without
this affects some downstream dockers like mdillon/postgis (will file an issue there too, in case it becomes a config option)
The text was updated successfully, but these errors were encountered: