diff options
Diffstat (limited to 'docker/utils/utils.py')
-rw-r--r-- | docker/utils/utils.py | 5 |
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 |