mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Merge 558dbd2763 into f9e2630d69
This commit is contained in:
commit
4d10d9b0c6
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ module VagrantPlugins
|
|||
if network["Ports"][port_name].respond_to?(:first)
|
||||
port_info = network["Ports"][port_name].first
|
||||
else
|
||||
ip = network["IPAddress"]
|
||||
# As IPAddress was removed in Docker 29.0.0 we fallback
|
||||
# to Networks/bridge/IPAddress here.
|
||||
ip = network["IPAddress"] ||
|
||||
network.dig("Networks", "bridge", "IPAddress")
|
||||
port = @machine.config.ssh.guest_port
|
||||
if !ip.to_s.empty?
|
||||
port_info = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue