Files
docker-cli/man
Yong Tang d93d09acaa Add --cpus flag to control cpu resources
This fix tries to address the proposal raised in 27921 and add
`--cpus` flag for `docker run/create`.

Basically, `--cpus` will allow user to specify a number (possibly partial)
about how many CPUs the container will use. For example, on a 2-CPU system
`--cpus 1.5` means the container will take 75% (1.5/2) of the CPU share.

This fix adds a `NanoCPUs` field to `HostConfig` since swarmkit alreay
have a concept of NanoCPUs for tasks. The `--cpus` flag will translate
the number into reused `NanoCPUs` to be consistent.

This fix adds integration tests to cover the changes.

Related docs (`docker run` and Remote APIs) have been updated.

This fix fixes 27921.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-06-02 00:10:32 +00:00
..
2017-06-02 00:06:57 +00:00
2017-06-02 00:07:12 +00:00
2017-06-02 00:07:30 +00:00
2017-06-02 00:10:24 +00:00
2017-06-02 00:07:16 +00:00
2017-06-02 00:07:30 +00:00
2017-06-02 00:06:57 +00:00
2017-06-02 00:10:08 +00:00
2017-06-02 00:07:30 +00:00
2017-06-02 00:07:32 +00:00
2017-06-02 00:07:16 +00:00
2017-06-02 00:10:30 +00:00
2017-06-02 00:10:24 +00:00
2017-06-02 00:06:57 +00:00
2017-06-02 00:10:07 +00:00
2017-06-02 00:10:32 +00:00
2017-06-02 00:10:09 +00:00
2017-06-02 00:10:25 +00:00
2017-06-02 00:06:57 +00:00
2017-06-02 00:10:02 +00:00

Docker Documentation

This directory contains scripts for generating the man pages. Many of the man pages are generated directly from the spf13/cobra Command definition. Some legacy pages are still generated from the markdown files in this directory. Do not edit the man pages in the man1 directory. Instead, update the Cobra command or amend the Markdown files for legacy pages.

Generate the man pages

From within the project root directory run:

make manpages