mirror of https://github.com/docker/docs.git
Fix IP address not being set correctly due to race
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
2c8823fab7
commit
a7d1a70442
|
@ -316,8 +316,8 @@ func (d *Driver) Create() error {
|
|||
return err
|
||||
}
|
||||
if ip != "" {
|
||||
|
||||
d.IPAddress = instance.IpAddress
|
||||
d.IPAddress = ip
|
||||
log.Debugf("Got the IP Address, it's %q", d.IPAddress)
|
||||
break
|
||||
}
|
||||
time.Sleep(5 * time.Second)
|
||||
|
@ -565,10 +565,6 @@ func (d *Driver) waitForInstance() error {
|
|||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
|
||||
if err := d.updateDriver(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue