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

Container interface

容器实例。

属性

command

要以 exec 形式在容器实例中执行的命令。

environmentVariables

在容器实例中设置的环境变量。

image

用于创建容器实例的映像的名称。

instanceView

容器实例的实例视图。 仅在响应中有效。 注意:此属性不会序列化。 它只能由服务器填充。

livenessProbe

生存度探测。

name

容器实例的用户提供的名称。

ports

容器实例上公开的端口。

readinessProbe

就绪情况探测。

resources

容器实例的资源要求。

securityContext

容器安全属性。

volumeMounts

卷装载可用于容器实例。

属性详细信息

command

要以 exec 形式在容器实例中执行的命令。

command?: string[]

属性值

string[]

environmentVariables

在容器实例中设置的环境变量。

environmentVariables?: EnvironmentVariable[]

属性值

image

用于创建容器实例的映像的名称。

image: string

属性值

string

instanceView

容器实例的实例视图。 仅在响应中有效。 注意:此属性不会序列化。 它只能由服务器填充。

instanceView?: ContainerPropertiesInstanceView

属性值

livenessProbe

生存度探测。

livenessProbe?: ContainerProbe

属性值

name

容器实例的用户提供的名称。

name: string

属性值

string

ports

容器实例上公开的端口。

ports?: ContainerPort[]

属性值

readinessProbe

就绪情况探测。

readinessProbe?: ContainerProbe

属性值

resources

容器实例的资源要求。

resources: ResourceRequirements

属性值

securityContext

容器安全属性。

securityContext?: SecurityContextDefinition

属性值

volumeMounts

卷装载可用于容器实例。

volumeMounts?: VolumeMount[]

属性值