Open ChrisChristophers opened 3 weeks ago
I would start with: can you ping the host from within the container on that IP? else with bccontainerhelper you get a dns entry within the container that you can use : host.containerhelper.internal try to use that instead.
Furthermore you can check in the logs of the SQL server if the container service is even reaching the DB ? if the container reached a running state you might also connect into it and make use of invoke-sqlcmd to try out the accessibility with that.
If i start a cronus container , i can ping the host. I also tried setting -databaseServer 'host.containerhelper.internal' ` , unfortunately to no avail. Maybe for whatever reason the service has trouble connecting to the SQLEXPRESS instance?
Also , i have a database on another machine ( not the host ) to which i can connect without any issues. The difference is that it's a regular SQL Server without a instance name so i can omit it.
well, if it is a service issue: event log or try to play with invoke-sqlcmd and see if you can connect to the DB at all and maybe get some more meaningful error from it .
I would try to set -databaseServer '172.31.64.1\SQLEXPRESS'
and omit instance name as parameter.
Did you manually restore your database to the database server on the host? Does the database with $databaseName already exist?
If you want BcContainerHelper to generate the database for you, you need to specify -replaceExternalDatabases !
Hi
I am having issues to setup BC with an SQL Express DB on the docker host. I am using following script:
This is the Host & SQL Info:
This is the Error Msg.
Help would be appreciated.