mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix inconsistent fields for resource settings on service for API docs
In API docs, `CPU` and `Memory` were used for resource settings on services. The actual settings should be `NanoCPUs` and `MemoryBytes`. This fix address the inconsistent fields between API docs and actual settings. This fix fixes #24058. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
caf8c75572
commit
0159ee1f5d
2 changed files with 8 additions and 8 deletions
|
@ -4006,11 +4006,11 @@ JSON Parameters:
|
||||||
- **Resources** – Resource requirements which apply to each individual container created as part
|
- **Resources** – Resource requirements which apply to each individual container created as part
|
||||||
of the service.
|
of the service.
|
||||||
- **Limits** – Define resources limits.
|
- **Limits** – Define resources limits.
|
||||||
- **CPU** – CPU limit
|
- **NanoCPUs** – CPU limit in units of 10<sup>-9</sup> CPU shares.
|
||||||
- **Memory** – Memory limit
|
- **MemoryBytes** – Memory limit in Bytes.
|
||||||
- **Reservation** – Define resources reservation.
|
- **Reservation** – Define resources reservation.
|
||||||
- **CPU** – CPU reservation
|
- **NanoCPUs** – CPU reservation in units of 10<sup>-9</sup> CPU shares.
|
||||||
- **Memory** – Memory reservation
|
- **MemoryBytes** – Memory reservation in Bytes.
|
||||||
- **RestartPolicy** – Specification for the restart policy which applies to containers created
|
- **RestartPolicy** – Specification for the restart policy which applies to containers created
|
||||||
as part of this service.
|
as part of this service.
|
||||||
- **Condition** – Condition for restart (`none`, `on-failure`, or `any`).
|
- **Condition** – Condition for restart (`none`, `on-failure`, or `any`).
|
||||||
|
|
|
@ -4007,11 +4007,11 @@ JSON Parameters:
|
||||||
- **Resources** – Resource requirements which apply to each individual container created as part
|
- **Resources** – Resource requirements which apply to each individual container created as part
|
||||||
of the service.
|
of the service.
|
||||||
- **Limits** – Define resources limits.
|
- **Limits** – Define resources limits.
|
||||||
- **CPU** – CPU limit
|
- **NanoCPUs** – CPU limit in units of 10<sup>-9</sup> CPU shares.
|
||||||
- **Memory** – Memory limit
|
- **MemoryBytes** – Memory limit in Bytes.
|
||||||
- **Reservation** – Define resources reservation.
|
- **Reservation** – Define resources reservation.
|
||||||
- **CPU** – CPU reservation
|
- **NanoCPUs** – CPU reservation in units of 10<sup>-9</sup> CPU shares.
|
||||||
- **Memory** – Memory reservation
|
- **MemoryBytes** – Memory reservation in Bytes.
|
||||||
- **RestartPolicy** – Specification for the restart policy which applies to containers created
|
- **RestartPolicy** – Specification for the restart policy which applies to containers created
|
||||||
as part of this service.
|
as part of this service.
|
||||||
- **Condition** – Condition for restart (`none`, `on-failure`, or `any`).
|
- **Condition** – Condition for restart (`none`, `on-failure`, or `any`).
|
||||||
|
|
Loading…
Add table
Reference in a new issue