I have an Azure Batch pool with nodes supporting Docker. That is, the OS offer is MicrosoftWindowsServer WindowsServer 2016-Datacenter-with-Containers.
I create a task as 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;
}
When the task is run, it completes with the error ContainerPoolNotSupported, The compute node does not support container feature
.
This does not make sense. When I connect to the node, I see docker there, the image is preinstalled so I can even run the container right away. The task finishes nearly immediately so likely Azure Batch just notices the container settings and for some reason throws.
Are there any workarounds? Google offers 0 references for the error name.