TaskContainerSettings Class

The container settings for a task.

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

Inheritance
azure.mgmt.batch._serialization.Model
TaskContainerSettings

Constructor

TaskContainerSettings(*, image_name: str, container_run_options: str | None = None, registry: _models.ContainerRegistry | None = None, working_directory: str | _models.ContainerWorkingDirectory | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
container_run_options
str

These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.

image_name
str

This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default. Required.

registry

This setting can be omitted if was already provided at pool creation.

working_directory

A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'. Known values are: "TaskWorkingDirectory" and "ContainerImageDefault".

Variables

Name Description
container_run_options
str

These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.

image_name
str

This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default. Required.

registry

This setting can be omitted if was already provided at pool creation.

working_directory

A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'. Known values are: "TaskWorkingDirectory" and "ContainerImageDefault".