Using Docker to launch web app, can't connect to Postgresql DB?

后端 未结 4 1356
礼貌的吻别
礼貌的吻别 2021-02-06 10:10

I received the following error when trying to write session data using Tomcat\'s PersistentManager to a Postgres DB running on my local machine:

SEVERE: A SQL e         


        
4条回答
  •  遥遥无期
    2021-02-06 10:15

    I was getting the same error but this simple solution works perfect for me.
    sudo docker run -d --net="host" -it Now I can run my app https://x.x.x.x:pppp/../.. and everything works fine. I hope this helps

提交回复
热议问题