docker_swarm_service: Fix description of limits.memory (#66078) (#66112)

This option corresponds to the '--limit-memory' option. Also
fix other mentions memory reservation instead of limit.

(cherry picked from commit 30cfa92e90)

Co-authored-by: Pedro Alvarez Piedehierro <palvarez89@gmail.com>
pull/66221/head
Felix Fontein 6 years ago committed by Alicia Cozine
parent 77ce11b21d
commit c290ea13f3

@ -204,12 +204,12 @@ options:
type: float type: float
memory: memory:
description: description:
- "Service memory reservation in format C(<number>[<unit>]). Number is a positive integer. - "Service memory limit in format C(<number>[<unit>]). Number is a positive integer.
Unit can be C(B) (byte), C(K) (kibibyte, 1024B), C(M) (mebibyte), C(G) (gibibyte), Unit can be C(B) (byte), C(K) (kibibyte, 1024B), C(M) (mebibyte), C(G) (gibibyte),
C(T) (tebibyte), or C(P) (pebibyte)." C(T) (tebibyte), or C(P) (pebibyte)."
- C(0) equals no reservation. - C(0) equals no limit.
- Omitting the unit defaults to bytes. - Omitting the unit defaults to bytes.
- Corresponds to the C(--reserve-memory) option of C(docker service create). - Corresponds to the C(--limit-memory) option of C(docker service create).
type: str type: str
type: dict type: dict
version_added: "2.8" version_added: "2.8"

Loading…
Cancel
Save