Allow for ipv6 networks in docker
This commit is contained in:
parent
000457a012
commit
29696b0f73
|
@ -66,6 +66,8 @@ module VagrantPlugins
|
||||||
connect_opts = []
|
connect_opts = []
|
||||||
if options[:ip]
|
if options[:ip]
|
||||||
connect_opts = ["--ip", options[:ip]]
|
connect_opts = ["--ip", options[:ip]]
|
||||||
|
elsif options[:ip6]
|
||||||
|
connect_opts = ["--ip6", options[:ip6]]
|
||||||
end
|
end
|
||||||
machine.provider.driver.connect_network(network_name, container_id, connect_opts)
|
machine.provider.driver.connect_network(network_name, container_id, connect_opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue