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

浏览容器代码包属性

描述容器及其运行时属性。

属性

名称 类型 必须
name string
image 字符串
imageRegistryCredential ImageRegistryCredential
entrypoint 字符串
commands 字符串数组
environmentVariables EnvironmentVariable 的数组
settings 设置数组
labels ContainerLabel 的数组
endpoints EndpointProperties 数组
resources ResourceRequirements
volumeRefs ContainerVolume 的数组
instanceView ContainerInstanceView
diagnostics DiagnosticsRef

name

类型:字符串
必需:是

代码包的名称。


image

类型:字符串
必需:是

要使用的容器映像。


imageRegistryCredential

类型ImageRegistryCredential
必需:否

映像注册表凭据。


entrypoint

类型:字符串
必需:否

替代容器中的默认入口点。


commands

类型:字符串数组
必需:否

在容器中以 exec 形式执行的命令数组。


environmentVariables

类型EnvironmentVariable 数组
必需:否

要在此容器中设置的环境变量


settings

类型设置数组
必需:否

要在此容器中设置的设置。 可以从环境变量“Fabric_SettingPath”中提取设置文件路径。 Windows 容器的路径为“C:\secrets”。 Linux 容器的路径为“/var/secrets”。


labels

类型ContainerLabel 数组
必需:否

要在此容器中设置的标签。


endpoints

类型EndpointProperties 数组
必需:否

此容器公开的终结点。


resources

类型ResourceRequirements
必需:是

此类型描述容器或服务的资源要求。


volumeRefs

类型ContainerVolume 的数组
必需:否

要附加到容器的卷。


instanceView

类型ContainerInstanceView
必需:否

容器实例的运行时信息。


diagnostics

类型DiagnosticsRef
必需:否

对 DiagnosticsDescription 中的接收器的引用。