Allow for ipv6 networks in docker

This commit is contained in:
Brian Cain 2019-03-01 16:20:16 -08:00
parent 000457a012
commit 29696b0f73
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 2 additions and 0 deletions

View File

@ -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