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 2ec74c2 commit 5d50fa5
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 @@ -118,12 +118,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 @@ -138,7 +138,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 5d50fa5

Please sign in to comment.