class documentation

class TaskTemplate(dict): (source)

View In Hierarchy

Describe the task specification to be used when creating or updating a service. Args: container_spec (ContainerSpec): Container settings for containers started as part of this task. log_driver (DriverConfig): Log configuration for containers created as part of the service. resources (Resources): Resource requirements which apply to each individual container created as part of the service. restart_policy (RestartPolicy): Specification for the restart policy which applies to containers created as part of this service. placement (Placement): Placement instructions for the scheduler. If a list is passed instead, it is assumed to be a list of constraints as part of a :py:class:`Placement` object. networks (:py:class:`list`): List of network names or IDs or :py:class:`NetworkAttachmentConfig` to attach the service to. force_update (int): A counter that triggers an update even if no relevant parameters have been changed.

Method __init__ Undocumented
Property container_spec Undocumented
Property placement Undocumented
Property resources Undocumented
Property restart_policy Undocumented
def __init__(self, container_spec, resources=None, restart_policy=None, placement=None, log_driver=None, networks=None, force_update=None): (source)

Undocumented

@property
container_spec = (source)

Undocumented

Undocumented

Undocumented

@property
restart_policy = (source)

Undocumented