From e379e8ae241faf0d8fc244cf4f7228e615149c8b Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Tue, 10 Feb 2015 16:09:48 -0800 Subject: read_only parameter --- docker/utils/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docker/utils/utils.py') 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 -- cgit v1.2.1