Skip to content

Commit a316e6a

Browse files
Francis Lanielchris-crone
authored andcommitted
Add documentation to argument 'mem_reservation'.
The documentation was added for function ContainerCollection::run and ContainerApiMixin::create_host_config. Signed-off-by: Francis Laniel <[email protected]> Add documentation to argument 'mem_reservation'. The documentation was added for function ContainerCollection::run and ContainerApiMixin::create_host_config. Signed-off-by: Francis Laniel <[email protected]>
1 parent ea4fbd7 commit a316e6a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker/api/container.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ def create_host_config(self, *args, **kwargs):
502502
bytes) or a string with a units identification char
503503
(``100000b``, ``1000k``, ``128m``, ``1g``). If a string is
504504
specified without a units character, bytes are assumed as an
505+
mem_reservation (int or str): Memory soft limit.
505506
mem_swappiness (int): Tune a container's memory swappiness
506507
behavior. Accepts number between 0 and 100.
507508
memswap_limit (str or int): Maximum amount of memory + swap a

docker/models/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
618618
(``100000b``, ``1000k``, ``128m``, ``1g``). If a string is
619619
specified without a units character, bytes are assumed as an
620620
intended unit.
621-
mem_reservation (int or str): Memory soft limit
621+
mem_reservation (int or str): Memory soft limit.
622622
mem_swappiness (int): Tune a container's memory swappiness
623623
behavior. Accepts number between 0 and 100.
624624
memswap_limit (str or int): Maximum amount of memory + swap a

0 commit comments

Comments
 (0)