次の方法で共有


Container Class

A container instance.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Constructor

Container(*, name: str, image: str, resources: _models.ResourceRequirements, command: List[str] | None = None, ports: List[_models.ContainerPort] | None = None, environment_variables: List[_models.EnvironmentVariable] | None = None, volume_mounts: List[_models.VolumeMount] | None = None, liveness_probe: _models.ContainerProbe | None = None, readiness_probe: _models.ContainerProbe | None = None, security_context: _models.SecurityContextDefinition | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The user-provided name of the container instance. Required.

image
str

The name of the image used to create the container instance. Required.

command

The commands to execute within the container instance in exec form.

Default value: None
ports

The exposed ports on the container instance.

Default value: None
environment_variables

The environment variables to set in the container instance.

Default value: None
resources

The resource requirements of the container instance. Required.

volume_mounts

The volume mounts available to the container instance.

Default value: None
liveness_probe

The liveness probe.

Default value: None
readiness_probe

The readiness probe.

Default value: None
security_context

The container security properties.

Default value: None

Variables

Name Description
name
str

The user-provided name of the container instance. Required.

image
str

The name of the image used to create the container instance. Required.

command

The commands to execute within the container instance in exec form.

ports

The exposed ports on the container instance.

environment_variables

The environment variables to set in the container instance.

instance_view

The instance view of the container instance. Only valid in response.

resources

The resource requirements of the container instance. Required.

volume_mounts

The volume mounts available to the container instance.

liveness_probe

The liveness probe.

readiness_probe

The readiness probe.

security_context

The container security properties.