TaskContainerSettings Class
The container settings for a task.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
TaskContainerSettings
Constructor
TaskContainerSettings(*, image_name: str, container_run_options: Optional[str] = None, registry: Optional[azure.mgmt.batch.models._models_py3.ContainerRegistry] = None, working_directory: Optional[Union[str, azure.mgmt.batch.models._batch_management_client_enums.ContainerWorkingDirectory]] = None, **kwargs)
Variables
- 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
Required. 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.
- registry
- ContainerRegistry
This setting can be omitted if was already provided at pool creation.
- working_directory
- str or ContainerWorkingDirectory
A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'. Possible values include: "TaskWorkingDirectory", "ContainerImageDefault".
Feedback
Submit and view feedback for