summaryrefslogtreecommitdiff
path: root/docker/utils
diff options
context:
space:
mode:
authorJoffrey F <f.joffrey@gmail.com>2015-02-11 11:13:43 -0800
committerJoffrey F <f.joffrey@gmail.com>2015-02-11 11:13:43 -0800
commit6a804ac3918106844ba32b0d1ae5e262bcdeb2a1 (patch)
tree122e6205712051447a0d2b43b0aa1a1c632be45d /docker/utils
parentd0512028be0301325a59bc94831743e628e3108e (diff)
parente379e8ae241faf0d8fc244cf4f7228e615149c8b (diff)
downloaddocker-py-6a804ac3918106844ba32b0d1ae5e262bcdeb2a1.tar.gz
Merge pull request #483 from docker/read_only_rootfs
read_only parameter
Diffstat (limited to 'docker/utils')
-rw-r--r--docker/utils/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index fdaf667..de2ecf5 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -301,7 +301,7 @@ def create_host_config(
publish_all_ports=False, links=None, privileged=False,
dns=None, dns_search=None, volumes_from=None, network_mode=None,
restart_policy=None, cap_add=None, cap_drop=None, devices=None,
- extra_hosts=None
+ extra_hosts=None, read_only=None
):
host_config = {}
@@ -311,6 +311,9 @@ def create_host_config(
if publish_all_ports:
host_config['PublishAllPorts'] = publish_all_ports
+ if read_only is not None:
+ host_config['ReadOnlyRootFs'] = read_only
+
if dns_search:
host_config['DnsSearch'] = dns_search