你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JobManagerTask.ContainerSettings 属性

定义

获取或设置运行作业管理器任务的容器的设置。

[Newtonsoft.Json.JsonProperty(PropertyName="containerSettings")]
public Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings ContainerSettings { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="containerSettings")>]
member this.ContainerSettings : Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings with get, set
Public Property ContainerSettings As TaskContainerSettings

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

如果将运行此任务的池具有 containerConfiguration 集,则还必须设置此设置。 如果将运行此任务的池没有 containerConfiguration 设置,则不得设置此设置。 指定此项后,AZ_BATCH_NODE_ROOT_DIR (节点上 Azure Batch) 目录的根目录以递归方式映射到容器中,所有 Task 环境变量都映射到容器中,并在容器中执行 Task 命令行。 AZ_BATCH_NODE_ROOT_DIR 之外的容器中生成的文件可能不会反映在主机磁盘上,这意味着 Batch 文件 API 无法访问这些文件。

适用于