Fixes for network stuff.
This commit is contained in:
parent
73c3f5aacb
commit
1eb3a8ded7
3
dup.rb
3
dup.rb
@ -226,8 +226,9 @@ class Container
|
|||||||
def filename; "%s/%s.yml" % [$base_dir, @name]; end
|
def filename; "%s/%s.yml" % [$base_dir, @name]; end
|
||||||
|
|
||||||
def build_run_command
|
def build_run_command
|
||||||
|
$net_host = true if @data["net"]=="host"
|
||||||
cmd = ["docker", "create"]
|
cmd = ["docker", "create"]
|
||||||
cmd << "--net" << @data["networks"][0] if @data["networks"] && !$net_host
|
cmd << "--net" << @data["networks"][0] if @data["networks"] && @data["networks"].count>0 && !$net_host
|
||||||
cmd << "--net" << "host" if $net_host
|
cmd << "--net" << "host" if $net_host
|
||||||
|
|
||||||
if !@data["test"]
|
if !@data["test"]
|
||||||
|
Loading…
Reference in New Issue
Block a user