class documentation

Create a ulimit declaration to be used with :py:meth:`~docker.api.container.ContainerApiMixin.create_host_config`. Args: name (str): Which ulimit will this apply to. The valid names can be found in '/etc/security/limits.conf' on a gnu/linux system. soft (int): The soft limit for this ulimit. Optional. hard (int): The hard limit for this ulimit. Optional. Example: >>> nproc_limit = docker.types.Ulimit(name='nproc', soft=1024) >>> hc = client.create_host_config(ulimits=[nproc_limit]) >>> container = client.create_container( 'busybox', 'true', host_config=hc ) >>> client.inspect_container(container)['HostConfig']['Ulimits'] [{'Name': 'nproc', 'Hard': 0, 'Soft': 1024}]

Method __init__ Undocumented
Method hard.setter Undocumented
Method name.setter Undocumented
Method soft.setter Undocumented
Property hard Undocumented
Property name Undocumented
Property soft Undocumented
def __init__(self, **kwargs): (source)

Undocumented

@hard.setter
def hard(self, value): (source)

Undocumented

@name.setter
def name(self, value): (source)

Undocumented

@soft.setter
def soft(self, value): (source)

Undocumented

Undocumented

Undocumented

Undocumented