jiheielf
✅ Docker Container Can't connect to remote SQL Server
Hi, I have just checked this, but this exmaple seems trying to make a new container that connects to a local sql server rather than a remote one. My remote sql server is running in a windows server on another machine...
46 replies
✅ Docker Container Can't connect to remote SQL Server
Sorry I didn't understand it, in my code the connection string is this "Data Source=xxx.xx.xxx.xx,1433;initial Catalog=xxxx;User ID=xxxx;Password=xxxxxx;MultipleActiveResultSets=true" but the Data Source should be another format that needs to be compatable in the container's internal linux environment?
46 replies
✅ Docker Container Can't connect to remote SQL Server
Sorry just to double check if I didn't get it wrong, does that mean I need to firstly set up the connection from the container internal linux environment to be able to connect to the remote sql server or the remote ip address and then my program as a container can then be able to using EF core to interact with it?
46 replies
Worker Service .NET8 how to gracefully shutdown as a docker container
Hi all, so I have tried to search for any lifecycle related stuff for the worker service, and I have found the interface called IHostedLifecycleService. So in my application I will have a boolean value that will be changed by the long run process and in the StoppingAsync method it will just wait until the process change the boolean. But it seems that just won't work for docker container...any additional ideas?
25 replies