I am trying to test docker containers that work with domain credentials and I am following these instructions from Microsoft Docs. I created an MSA group, and I'm sure I did the right thing, as I can use other services on my local computer using it.
I am testing on a Windows 10 PC using hyper-v dockers.
I created an image called sqltest. When I run the following, the container does an evey as expected:
docker run -it sqltest
I tried to create the credentials of the active directory using the following command:
New-CredentialSpec -Name developerpcsql -AccountName developerpcsql
The call Get-CredentialSpecconfirms that the json file is being created as expected, and looks correct when I open the file.
To start the container, I use:
docker run -it --security-opt "credentialspec=file://developerpcsql.json" sqltest
When I do this, it takes about 30 seconds, and then I get the following error:
Response error from daemon: container d97082fab98c0205c0072b0a8b79fb7835c8e90828498428b976e378762cc412 detected an error during startup: failure during a Windows system call: the operation was disconnected because the response was not received from the virtual machine on which the container was located. (0xc0370109).
To confirm this is not my container, I also tried using the standard microsoft / servercore container and getting the same error.
Any ideas on what I am missing?
source
share