-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-BCContainer with databaseparams fails at Import Encryption Key #3247
Comments
so the Host machines runs the SQL Server DB ? Have you added the users you provide here to the DB Server, mapped to the DB in question, and set the SQL server to allow mixed mode auth? ...oh you wrote that in the top.... check it once more :) not sure you have to map the sa user.... you can use the broken container to test a couple of things: like : can you reach the host ( ping) can you reach the SQL server invoke-sqlcmd ) you might also want to check the SQL Logs to see if the SQL server had a reason to kick the login from the user you provide. |
I've the same issue, thx to @KristofKlein, first step to check some details, ping host.containerhelper.internal. Pinging host.containerhelper.internal [172.25.240.1] with 32 bytes of data: Ping statistics for 172.25.240.1: so I find out, hosts file in bc-container is written (name host.containerhelper.internal->172.25.240.1). |
-updateHosts causes ContainerHelper to set host.containerhelper.internal to the IP number of the gateway inside the container, which should work if you are using the default NAT network. |
Yes, I understood that too. Currently you can only install containers with Hyper-V. Is it possible that this results in an overlap in the IP address? Then that might be an explanation for why it doesn't ping for me. |
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
New-BCContainer with databaseparams fails at Import Encryption Key.
I have installed SQL server on host, and enabled mixed mode authentication.
I have created sa user in SQL Server on host.
I have disabled all firewall on host.
Scripts used to create container and cause the issue
Full output of scripts
Screenshots
None
Additional context
Database were successfully created and restored on Host.
Host is on windows 11 Pro.
I have successfully ran dockers before but with SQL server express installed in docker container itself. This is 1st time attempting to create docker with connection to host sql server.
The text was updated successfully, but these errors were encountered: