Docker Community Forums

Share and learn in the Docker community.

Docker container app not able to communicate SQL server


(Vijaytest) #1

I have two ASP.NET Core 2.0 application “App A” and “App B”.
App A is the hosted in Host machine IIS and communicate with SQL server to get data from database.
App B is deployed in Docker container and communicate with App A. But I am getting error when App A is trying to establish connection with MS SQL server and giving error like below:

“Login failed for user ‘NT AUTHORITY\ANONYMOUS LOGON’”

When I create user ‘NT AUTHORITY\ANONYMOUS LOGON’ in SQL server then it is able to communicate correctly and getting data from the database.

Can you please suggest why it is required the ‘NT AUTHORITY\ANONYMOUS LOGON’ user under SQL server? Can we have connection without this user creation?

App B Docker File:

FROM microsoft/aspnetcore:2.0
WORKDIR /app
COPY ./DeployPackage .
ENTRYPOINT [“dotnet”, “AppB.dll”]

App B Docker-Compose File:

version: “3”
services:
api:
build:
context: .
dockerfile: Dockerfile
image: tscon
ports:

  • “80:80”

(Jasonsmith211) #2

it was working smooth on my iPad Pro when it was running on iOS 10 however as I have updated to iOS 11.3 whenever now I am opening the app it only loads a blank screen on the start up and crashes after a while automatically. How do I fix it?

thanks&regret
jasonsmith