kartoza / docker-postgis

Dockerfile for postgis
GNU General Public License v2.0
655 stars 316 forks source link

Can't make connection with container when detached #474

Closed jjcfrancisco closed 3 months ago

jjcfrancisco commented 4 months ago

What is the bug or the crash?

A connection cannot be made with the container when in detached mode

Steps to reproduce the issue

Can't make connection ❌

docker run --name "my-db" \
    -p 25432:5432 \
    -e POSTGRES_USER=my_user \
    -e POSTGRES_PASS=my_password \
    -e POSTGRES_DBNAME=my_database \
    -d -t kartoza/postgis:16-3.4

Can make connection ✅

docker run --name "my-db" \
    -p 25432:5432 \
    -e POSTGRES_USER=my_user \
    -e POSTGRES_PASS=my_password \
    -e POSTGRES_DBNAME=my_database \
    -t kartoza/postgis:16-3.4

Versions

kartoza/postgis:16-3.4

Additional context

  1. It is possible to make a connection internally via docker exec -> psql.
  2. Using the arm64 build.
timlinux commented 3 months ago

Can you clarify the test you are doing for making a connection? It works fine for me here:

image

image