【发布时间】:2018-09-10 11:47:05
【问题描述】:
我有一个带有支持 Docker 的节点的 Azure Batch 池。 也就是说,操作系统提供的是 MicrosoftWindowsServer WindowsServer 2016-Datacenter-with-Containers。
我创建一个任务为recommended:
private static CloudTask CreateTask(string id, string commandLine)
{
var autoUserSpec = new AutoUserSpecification(elevationLevel: ElevationLevel.Admin);
var containerSettings = new TaskContainerSettings(_imageName);
var task = new CloudTask(id, commandLine)
{
UserIdentity = new UserIdentity(autoUserSpec),
ContainerSettings = containerSettings,
};
return task;
}
当任务运行时,它完成并出现错误 ContainerPoolNotSupported,The compute node does not support container feature。
这没有意义。当我连接到节点时,我在那里看到了 docker,图像已预先安装,因此我什至可以立即运行容器。任务几乎立即完成,因此 Azure Batch 很可能只是注意到容器设置并出于某种原因抛出。
有什么解决方法吗? Google 为错误名称提供了 0 个参考。
【问题讨论】:
标签: azure docker containers azure-batch