mirror of https://github.com/docker/docs.git
Merge pull request #1268 from janeczku/waitforssh
Check that instance has started before polling SSH
This commit is contained in:
commit
a879b39902
|
@ -120,6 +120,10 @@ func (h *Host) Create(name string) error {
|
||||||
|
|
||||||
// TODO: Not really a fan of just checking "none" here.
|
// TODO: Not really a fan of just checking "none" here.
|
||||||
if h.Driver.DriverName() != "none" {
|
if h.Driver.DriverName() != "none" {
|
||||||
|
if err := utils.WaitFor(drivers.MachineInState(h.Driver, state.Running)); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if err := WaitForSSH(h); err != nil {
|
if err := WaitForSSH(h); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue