Merge pull request #551 from jpetazzo/471-cpu-limit

+ Runtime: implement "-c" option to allocate a number of CPU shares to a container
Upstream-commit: edc7c092d926defa19d8b30dda7d3add38505ca0
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-05-13 11:59:09 -07:00
8 changed files with 22 additions and 2 deletions
@@ -16,6 +16,7 @@ Full -run example::
{"Hostname": "",
"User": "",
"CpuShares": 0,
"Memory": 0,
"MemorySwap": 0,
"PortSpecs": ["22", "80", "443"],
@@ -9,6 +9,7 @@
Run a command in a new container
-a=map[]: Attach to stdin, stdout or stderr.
-c=0: CPU shares (relative weight)
-d=false: Detached mode: leave the container running in the background
-e=[]: Set environment variables
-h="": Container host name