gpt4 book ai didi

docker - 使用托管服务帐户启动 Windows docker 容器时出错

转载 作者:行者123 更新时间:2023-12-03 21:27:16 25 4
gpt4 key购买 nike

我正在尝试测试使用域凭据运行的 docker 容器,我正在关注 these instructions来自 Microsoft Docs。我已经创建了 Group MSA,我很确定我做对了,因为我可以使用它在本地计算机上运行其他服务。

我正在运行 hyper-v docker 容器的 Windows 10 PC 上进行测试。

我建立了一个名为 sqltest 的图像.当我运行以下命令时,容器会按预期执行所有操作:

docker run -it sqltest

我尝试使用以下命令创建事件目录凭据:
New-CredentialSpec -Name developerpcsql -AccountName developerpcsql

调用 Get-CredentialSpec确认 json 文件已按预期创建,当我打开文件时它看起来是正确的。

要运行容器,我正在使用:
docker run -it --security-opt "credentialspec=file://developerpcsql.json" sqltest

当我这样做时,大约需要 30 秒,然后我收到以下错误:

Error response from daemon: container d97082fab98c0205c0072b0a8b79fb7835c8e90828498428b976e378762cc412 encountered an error during Start: failure in a Windows system call: The operation timed out because a response was not received from the Virtual Machine hosting the Container. (0xc0370109).



为了确认它不是我的容器,我还尝试使用标准的 microsoft/servercore 容器并得到相同的错误。

关于我缺少什么的任何想法?

最佳答案

看起来它不适用于 Windows 10。
在这里你可以找到关于这个话题的讨论

Virtualization-Documentation git repo

Windows Server 2016 托管容器按预期工作。

关于docker - 使用托管服务帐户启动 Windows docker 容器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42013688/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com