Docker container to connect to Postgres not in docker

后端 未结 2 1899
温柔的废话
温柔的废话 2021-01-26 15:40

I have a .NET application running on a windows 10 computer using docker and postgres. When I run using the

 "DockerTest": {
      "commandName"         


        
2条回答
  •  孤街浪徒
    2021-01-26 16:25

    docker run --name=XXX -d -p 8081:8081 --add-host=computername:IP address name This was what finally make it work

提交回复
热议问题