build: use long running context for client

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2019-04-24 08:53:06 -07:00
parent 38889013af
commit e7eac2b909
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ func Boot(ctx context.Context, d Driver, pw progress.Writer) (*client.Client, er
}
}
c, err := d.Client(ctx)
c, err := d.Client(context.TODO())
if err != nil {
if errors.Cause(err) == ErrNotRunning && try <= 2 {
continue