Skip to content

Commit

Permalink
docker-container: increase bootstrap timeout
Browse files Browse the repository at this point in the history
Previous value was only 2 sec

Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jul 26, 2020
1 parent 8627f66 commit 26570d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driver/docker-container/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ func (d *Driver) create(ctx context.Context, l progress.SubLogger) error {
}

func (d *Driver) wait(ctx context.Context, l progress.SubLogger) error {
try := 0
try := 1
for {
bufStdout := &bytes.Buffer{}
bufStderr := &bytes.Buffer{}
if err := d.run(ctx, []string{"buildctl", "debug", "workers"}, bufStdout, bufStderr); err != nil {
if try > 10 {
if try > 15 {
if err != nil {
d.copyLogs(context.TODO(), l)
if bufStdout.Len() != 0 {
Expand All @@ -137,7 +137,7 @@ func (d *Driver) wait(ctx context.Context, l progress.SubLogger) error {
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(time.Duration(100+try*20) * time.Millisecond):
case <-time.After(time.Duration(try*120) * time.Millisecond):
try++
continue
}
Expand Down

0 comments on commit 26570d0

Please sign in to comment.