diff options
| author | Joffrey F <f.joffrey@gmail.com> | 2015-02-11 11:13:43 -0800 |
|---|---|---|
| committer | Joffrey F <f.joffrey@gmail.com> | 2015-02-11 11:13:43 -0800 |
| commit | 6a804ac3918106844ba32b0d1ae5e262bcdeb2a1 (patch) | |
| tree | 122e6205712051447a0d2b43b0aa1a1c632be45d /docker/utils | |
| parent | d0512028be0301325a59bc94831743e628e3108e (diff) | |
| parent | e379e8ae241faf0d8fc244cf4f7228e615149c8b (diff) | |
| download | docker-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.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 |
