Skip to content

Commit 6a8f167

Browse files
authored
Merge pull request #153 from crazy-max/docker-install-linux-log
docker(install): increase number of retries and log them
2 parents 945af30 + 19f5e39 commit 6a8f167

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/docker/install.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export class Install {
207207
}
208208
});
209209
proc.unref();
210+
const retries = 20;
210211
await retry(
211212
async bail => {
212213
await Exec.getExecOutput(`docker version`, undefined, {
@@ -231,8 +232,11 @@ export class Install {
231232
});
232233
},
233234
{
234-
retries: 10,
235-
minTimeout: 1000
235+
retries: retries,
236+
minTimeout: 1000,
237+
onRetry: (err, i) => {
238+
core.info(`${err}. Retrying (${i}/${retries})...`);
239+
}
236240
}
237241
);
238242
core.info(`Docker daemon started started successfully`);

0 commit comments

Comments
 (0)