Solution for How to connect to the SQL Server that is created in a docker container
is Given Below:
I have a yml file like this :
version: "3.2" services: sql-server-db: container_name: sql-server-db image: "mcr.microsoft.com/mssql/server" ports: - "1433:1433" environment: SA_PASSWORD: "anypass" ACCEPT_EULA: "Y"
I can use
docker-compose up -d command to create the container and connect to the sql server with the above sa password. But I need to connect to that database with
Integrated Secuirty=true which fails at the moment. I have googled but I cannot find a way to do it. Is it possible at all to connect to a sql server which is being created in a docker container with that option ?