Partilhar via


Container Construtores

Definição

Sobrecargas

Container()

Inicializa uma nova instância da classe Container.

Container(String, String, ResourceRequirements, IList<String>, IList<ContainerPort>, IList<EnvironmentVariable>, ContainerPropertiesInstanceView, IList<VolumeMount>, ContainerProbe, ContainerProbe)

Inicializa uma nova instância da classe Container.

Container()

Inicializa uma nova instância da classe Container.

public Container ();
Public Sub New ()

Aplica-se a

Container(String, String, ResourceRequirements, IList<String>, IList<ContainerPort>, IList<EnvironmentVariable>, ContainerPropertiesInstanceView, IList<VolumeMount>, ContainerProbe, ContainerProbe)

Inicializa uma nova instância da classe 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)

Parâmetros

name
String

O nome da instância de contêiner fornecido pelo usuário.

image
String

O nome da imagem usada para criar a instância de contêiner.

resources
ResourceRequirements

Os requisitos de recurso da instância de contêiner.

command
IList<String>

Os comandos a serem executados na instância de contêiner no formato de execução.

ports
IList<ContainerPort>

As portas expostas na instância de contêiner.

environmentVariables
IList<EnvironmentVariable>

As variáveis de ambiente a serem definidas na instância de contêiner.

instanceView
ContainerPropertiesInstanceView

A exibição de instância da instância de contêiner. Válido apenas em resposta.

volumeMounts
IList<VolumeMount>

As montagens de volume disponíveis para a instância de contêiner.

livenessProbe
ContainerProbe

A investigação de atividade.

readinessProbe
ContainerProbe

A investigação de preparação.

Aplica-se a