diff options
author | Joffrey F <joffrey@docker.com> | 2017-10-25 14:30:18 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-10-25 14:30:18 -0700 |
commit | ebfbe9a29e4269fa4c7688ca58797540818e3dc8 (patch) | |
tree | 1cd7bd44999cfffa6722e8c953d974e4eca29cec /docker/models | |
parent | 0d21b5b2549f013889491e02226b5facd758e514 (diff) | |
download | docker-py-build_extra_hosts.tar.gz |
Add support for extra_hosts option in buildbuild_extra_hosts
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/models')
-rw-r--r-- | docker/models/images.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/models/images.py b/docker/models/images.py index 2aae46d..82ca541 100644 --- a/docker/models/images.py +++ b/docker/models/images.py @@ -153,6 +153,10 @@ class ImageCollection(Collection): Dockerfile network_mode (str): networking mode for the run commands during build + squash (bool): Squash the resulting images layers into a + single layer. + extra_hosts (dict): Extra hosts to add to /etc/hosts in building + containers, as a mapping of hostname to IP address. Returns: (:py:class:`Image`): The built image. |