As someone commented on your question, you cannot do this because two separate virtual machines are running on your network. In addition, the SQL Server image for dockers is based on Linux, so it will make it more complex. What I would do (and my alredy team does) should have a sa SQL account and:
1.- In docker-compose.yml:
sqlserver: image: microsoft/mssql-server-linux:latest container_name: sqlserver volumes: - mssql-server-linux-data:/var/opt/mssql/data environment: - ACCEPT_EULA=Y - SA_PASSWORD=MySaPasswordIsHere ports: - "1433:1433"
2.- And in my link line (s) it looks:
"MyServiceThatUsesSqlServer": { "MyConnectionString": "Server=sqlserver;Database=MyDatabaseName;User Id=sa;Password=MySaPasswordIsHere;" },
I hope this helps you solve this problem.
PS: this explains a very recent possible approach to "Active Directory Authentication with SQL Server on Linux": https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-active-directory-authentication p >
source share