connection string for sqlserver in Docker container

后端 未结 5 1808
無奈伤痛
無奈伤痛 2020-12-29 18:55

I\'m using Visual Studio 2017 for mac with dotnet Core and EF Core. After setting up the mssql image in Docker container , I was trying to add the connection string but thr

5条回答
  •  情深已故
    2020-12-29 19:33

    I solved it by using SQL server Container IP address by inspecting the sql server container for its IP address as shown below

    docker inspect -f "{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}" 
    

提交回复
热议问题