Container class

Definition

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.

Container(*, name: str, image: str, resources, command=None, ports=None, environment_variables=None, volume_mounts=None, liveness_probe=None, readiness_probe=None, **kwargs) -> None
Inheritance
builtins.object
Container
Parameters
name
str

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

image
str

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

command
list[str]

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

ports
list[ContainerPort]

The exposed ports on the container instance.

environment_variables
list[EnvironmentVariable]

The environment variables to set in the container instance.

resources
ResourceRequirements

Required. The resource requirements of the container instance.

volume_mounts
list[VolumeMount]

The volume mounts available to the container instance.

liveness_probe
ContainerProbe

The liveness probe.

readiness_probe
ContainerProbe

The readiness probe.

Variables

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