Skip to content

Commit 3c7bc03

Browse files
authored
Merge pull request #149 from ypcs/feature/docker
Add Docker support
2 parents 8b27f7f + e903eaa commit 3c7bc03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/vagrant-hostsupdater/HostsUpdater.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def getIps
2323
if @machine.provider_name == :lxc
2424
ip = @machine.provider.capability(:public_address)
2525
ips.push(ip)
26+
elsif @machine.provider_name == :docker
27+
ip = @machine.provider.capability(:public_address)
28+
ips.push(ip)
2629
end
2730

2831
return ips

0 commit comments

Comments
 (0)