Skip to content

Commit 01dcde2

Browse files
authored
Merge pull request #2217 from eiffel-fl/master
Add documentation to argument 'mem_reservation' in ContainerCollection::run
2 parents 068ddf8 + a1bc6c2 commit 01dcde2

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)