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

容器代码包属性 v82

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

属性

名称 类型 必须
name string
image 字符串
imageRegistryCredential ImageRegistryCredential
entryPoint 字符串
commands 字符串数组
environmentVariables EnvironmentVariable 数组
settings 设置数组
labels ContainerLabel 数组
endpoints EndpointProperties 数组
resources ResourceRequirements
volumeRefs VolumeReference 数组
volumes ApplicationScopedVolume 数组
diagnostics DiagnosticsRef
reliableCollectionsRefs ReliableCollectionsRef 数组
instanceView ContainerInstanceView
livenessProbe 探测数组
readinessProbe 探测数组

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

类型VolumeReference 数组
必需:否

要附加到容器的卷。 这些卷的生存期与应用程序的生存期无关。


volumes

类型ApplicationScopedVolume 数组
必需:否

要附加到容器的卷。 这些卷的生存期限定为应用程序的生存期。


diagnostics

类型DiagnosticsRef
必需:否

对 DiagnosticsDescription 中接收器的引用。


reliableCollectionsRefs

类型ReliableCollectionsRef 的数组
必需:否

此特定代码包使用的 ReliableCollection 资源列表。 有关更多详细信息,请参阅 ReliableCollectionsRef。


instanceView

类型ContainerInstanceView
必需:否

容器实例的运行时信息。


livenessProbe

类型探测数组
必需:否

代码包的运行情况探测数组。 它确定何时重启代码包。


readinessProbe

类型探测数组
必需:否

代码包的就绪情况探测数组。 它确定何时取消发布终结点。