diff options
author | Joffrey F <joffrey@docker.com> | 2017-06-19 15:50:28 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-06-19 15:50:28 -0700 |
commit | 39bb78ac694d8d6e53882d3dbc9ebc3c92f5519d (patch) | |
tree | 1e23c2651663966f76c7ff35c486545f39e04b67 /docker/models | |
parent | bb82bcf7841107399ef04633b7c638380fbc9d9a (diff) | |
download | docker-py-1397-build-network.tar.gz |
Add network_mode support to Client.build1397-build-network
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/models')
-rw-r--r-- | docker/models/images.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docker/models/images.py b/docker/models/images.py index 7e999b0..d4e24c6 100644 --- a/docker/models/images.py +++ b/docker/models/images.py @@ -144,12 +144,15 @@ class ImageCollection(Collection): - cpushares (int): CPU shares (relative weight) - cpusetcpus (str): CPUs in which to allow execution, e.g., ``"0-3"``, ``"0,1"`` - decode (bool): If set to ``True``, the returned stream will be - decoded into dicts on the fly. Default ``False``. + shmsize (int): Size of `/dev/shm` in bytes. The size must be + greater than 0. If omitted the system uses 64MB + labels (dict): A dictionary of labels to set on the image cache_from (list): A list of images used for build cache - resolution. + resolution target (str): Name of the build-stage to build in a multi-stage - Dockerfile. + Dockerfile + network_mode (str): networking mode for the run commands during + build Returns: (:py:class:`Image`): The built image. |