diff options
author | Joffrey F <joffrey@docker.com> | 2015-02-10 16:09:48 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2015-02-10 16:13:09 -0800 |
commit | e379e8ae241faf0d8fc244cf4f7228e615149c8b (patch) | |
tree | 122e6205712051447a0d2b43b0aa1a1c632be45d /docker/utils/utils.py | |
parent | d0512028be0301325a59bc94831743e628e3108e (diff) | |
download | docker-py-read_only_rootfs.tar.gz |
read_only parameterread_only_rootfs
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 |