你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Container 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Container()
初始化 Container 类的新实例。
public Container ();
Public Sub New ()
适用于
Container(String, String, ResourceRequirements, IList<String>, IList<ContainerPort>, IList<EnvironmentVariable>, ContainerPropertiesInstanceView, IList<VolumeMount>, ContainerProbe, ContainerProbe)
初始化 Container 类的新实例。
public Container (string name, string image, Microsoft.Azure.Management.ContainerInstance.Models.ResourceRequirements resources, System.Collections.Generic.IList<string> command = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort> ports = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> environmentVariables = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerPropertiesInstanceView instanceView = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> volumeMounts = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe livenessProbe = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe readinessProbe = default);
new Microsoft.Azure.Management.ContainerInstance.Models.Container : string * string * Microsoft.Azure.Management.ContainerInstance.Models.ResourceRequirements * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerPropertiesInstanceView * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe * Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe -> Microsoft.Azure.Management.ContainerInstance.Models.Container
Public Sub New (name As String, image As String, resources As ResourceRequirements, Optional command As IList(Of String) = Nothing, Optional ports As IList(Of ContainerPort) = Nothing, Optional environmentVariables As IList(Of EnvironmentVariable) = Nothing, Optional instanceView As ContainerPropertiesInstanceView = Nothing, Optional volumeMounts As IList(Of VolumeMount) = Nothing, Optional livenessProbe As ContainerProbe = Nothing, Optional readinessProbe As ContainerProbe = Nothing)
参数
- name
- String
用户提供的容器实例名称。
- image
- String
用于创建容器实例的映像的名称。
- resources
- ResourceRequirements
容器实例的资源要求。
- ports
- IList<ContainerPort>
容器实例上的已公开端口。
- environmentVariables
- IList<EnvironmentVariable>
要在容器实例中设置的环境变量。
- instanceView
- ContainerPropertiesInstanceView
容器实例的实例视图。 仅在响应中有效。
- volumeMounts
- IList<VolumeMount>
容器实例可用的卷装入点数。
- livenessProbe
- ContainerProbe
运行情况探测。
- readinessProbe
- ContainerProbe
就绪情况探测。