@@ -444,7 +444,7 @@ def create_container(self, image, command=None, hostname=None, user=None,
444
444
network_disabled = False , name = None , entrypoint = None ,
445
445
cpu_shares = None , working_dir = None , domainname = None ,
446
446
memswap_limit = 0 , cpuset = None , host_config = None ,
447
- mac_address = None , labels = None ):
447
+ mac_address = None , labels = None , security_opt = None ):
448
448
449
449
if isinstance (volumes , six .string_types ):
450
450
volumes = [volumes , ]
@@ -458,7 +458,8 @@ def create_container(self, image, command=None, hostname=None, user=None,
458
458
self ._version , image , command , hostname , user , detach , stdin_open ,
459
459
tty , mem_limit , ports , environment , dns , volumes , volumes_from ,
460
460
network_disabled , entrypoint , cpu_shares , working_dir , domainname ,
461
- memswap_limit , cpuset , host_config , mac_address , labels
461
+ memswap_limit , cpuset , host_config , mac_address , labels ,
462
+ security_opt
462
463
)
463
464
return self .create_container_from_config (config , name )
464
465
@@ -869,7 +870,8 @@ def start(self, container, binds=None, port_bindings=None, lxc_conf=None,
869
870
publish_all_ports = False , links = None , privileged = False ,
870
871
dns = None , dns_search = None , volumes_from = None , network_mode = None ,
871
872
restart_policy = None , cap_add = None , cap_drop = None , devices = None ,
872
- extra_hosts = None , read_only = None , pid_mode = None ):
873
+ extra_hosts = None , read_only = None , pid_mode = None ,
874
+ security_opt = None ):
873
875
874
876
if utils .compare_version ('1.10' , self ._version ) < 0 :
875
877
if dns is not None :
@@ -897,7 +899,8 @@ def start(self, container, binds=None, port_bindings=None, lxc_conf=None,
897
899
privileged = privileged , dns_search = dns_search , cap_add = cap_add ,
898
900
cap_drop = cap_drop , volumes_from = volumes_from , devices = devices ,
899
901
network_mode = network_mode , restart_policy = restart_policy ,
900
- extra_hosts = extra_hosts , read_only = read_only , pid_mode = pid_mode
902
+ extra_hosts = extra_hosts , read_only = read_only , pid_mode = pid_mode ,
903
+ security_opt = security_opt
901
904
)
902
905
903
906
if isinstance (container , dict ):
0 commit comments