diff options
author | Joffrey F <joffrey@docker.com> | 2015-04-27 16:47:35 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2015-04-27 16:50:00 -0700 |
commit | 8c32677725c1ff4501b71466c0c82be6b90ff754 (patch) | |
tree | 1995b7cd9f3d640e285cdcae5fb2038d5955fb35 /docs/api.md | |
parent | 7958110fda9d8e0f5d2c49c162664bd2bf99df1a (diff) | |
download | docker-py-build_limits.tar.gz |
container limits documentationbuild_limits
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md index d45626c..a1886e3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -65,6 +65,12 @@ correct value (e.g `gzip`). * pull (bool): Downloads any updates to the FROM image in Dockerfiles * forcerm (bool): Always remove intermediate containers, even after unsuccessful builds * dockerfile (str): path within the build context to the Dockerfile +* container_limits (dict): A dictionary of limits applied to each container + created by the build process. Valid keys: + - memory (int): set memory limit for build + - memswap (int): Total memory (memory + swap), -1 to disable swap + - cpushares (int): CPU shares (relative weight) + - cpusetcpus (str): CPUs in which to allow exection, e.g., `"0-3"`, `"0,1"` **Returns** (generator): A generator of the build output |