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

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/66168/head
Felix Fontein 5 years ago committed by Alicia Cozine
parent fc89d45385
commit 5dfaf1dfe8

@ -211,12 +211,12 @@ options:
type: float
memory:
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),
C(T) (tebibyte), or C(P) (pebibyte)."
- C(0) equals no reservation.
- C(0) equals no limit.
- 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: dict
version_added: "2.8"

Loading…
Cancel
Save