mirror of https://github.com/docker/docs.git
Wait for error logs
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
36abac3891
commit
f5ba0f7420
|
|
@ -6,6 +6,8 @@ import (
|
|||
|
||||
"io"
|
||||
|
||||
"time"
|
||||
|
||||
"github.com/docker/machine/drivers/errdriver"
|
||||
"github.com/docker/machine/libmachine/auth"
|
||||
"github.com/docker/machine/libmachine/cert"
|
||||
|
|
@ -132,6 +134,9 @@ func (api *Client) Create(h *host.Host) error {
|
|||
log.Info("Creating machine...")
|
||||
|
||||
if err := api.performCreate(h); err != nil {
|
||||
// Wait for all the logs to reach the client
|
||||
time.Sleep(2 * time.Second)
|
||||
|
||||
vBoxLog := ""
|
||||
if h.DriverName == "virtualbox" {
|
||||
vBoxLog = filepath.Join(api.GetMachinesDir(), h.Name, h.Name, "Logs", "VBox.log")
|
||||
|
|
|
|||
Loading…
Reference in New Issue