Skip to content

Commit

Permalink
Merge pull request #149 from ypcs/feature/docker
Browse files Browse the repository at this point in the history
Add Docker support
  • Loading branch information
cgsmith authored Mar 19, 2018
2 parents 8b27f7f + e903eaa commit 3c7bc03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vagrant-hostsupdater/HostsUpdater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def getIps
if @machine.provider_name == :lxc
ip = @machine.provider.capability(:public_address)
ips.push(ip)
elsif @machine.provider_name == :docker
ip = @machine.provider.capability(:public_address)
ips.push(ip)
end

return ips
Expand Down

0 comments on commit 3c7bc03

Please sign in to comment.