问题描述
我尝试从微软的容器注册表中提取一个docker容器.
I tried pulling a docker container from microsoft's containers registry.
我从以下位置获得了powershell命令: https://hub.docker.com/_/microsoft-businesscentral
I got the powershell commands from: https://hub.docker.com/_/microsoft-businesscentral
就这些了
$ artifactUrl = Get-BcArtifactUrl-类型沙箱-国家/地区-选择最新
$artifactUrl = Get-BcArtifactUrl -type sandbox -country us -select latest
New-BCContainer -accept_eula -containerName test -artifactUrl $ artifactUrl
New-BCContainer -accept_eula -containerName test -artifactUrl $artifactUrl
这是我收到的错误消息:
This is the error message that I get:
有人知道为什么这行不通吗?我已经像2个月前一样做到了,而且没有任何错误.我非常感谢您的帮助,很抱歉,如果这很简单,或者以前已经被问到过,那么我是容器和powershell命令的新手,并且我搜索过类似的问题也没有运气.
Does anyone know why this is not working? I've done this like 2 months ago and I got no errors.I appretiate any help, and sorry if this is simple or was already asked before, I'm new with containers and powershell commands and I searched for similar problems with no luck.
推荐答案
您仍在运行已弃用的NavContainerHelper(如此处所述).
You are still running NavContainerHelper, which has been deprecated (as described here).
您需要切换到BcContainerHelper.
You need to switch to BcContainerHelper.
如上面链接中所述,切换过程如下:
As described in the link above the process for switching is as follows:
- 删除所有容器(
Get-NavContainers | Remove-NavContainer
) - 卸载所有版本的NavContainerHelper(
卸载模块NavContainerHelper -allversions
) - 重新启动PowerShell,并检查NavContainerHelper是否消失(否则重复步骤2)
- 将Docker重置为出厂设置(以删除所有图像)
- 删除
c:\ ProgramData \ NavContainerHelper
- 安装BcContainerHelper(
安装模块BcContainerHelper -force
)
这篇关于无法拉出Microsoft的Docker容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!