Cannot access docker postgres image via intellij and quarkus?

Viewed 517

I run a docker postgres container via command line:

docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=passme -d postgres

But in IntelliJ I can't access this container The following error message occurs:

[08001] Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
java.net.ConnectException: Connection refused: connect.

Do you know any problem, maybe with the port?

0 Answers
Related