Skip to content

Commit

Permalink
docker(install): increase number of retries and log them
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 26, 2023
1 parent 945af30 commit 19f5e39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/docker/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export class Install {
}
});
proc.unref();
const retries = 20;
await retry(
async bail => {
await Exec.getExecOutput(`docker version`, undefined, {
Expand All @@ -231,8 +232,11 @@ export class Install {
});
},
{
retries: 10,
minTimeout: 1000
retries: retries,
minTimeout: 1000,
onRetry: (err, i) => {
core.info(`${err}. Retrying (${i}/${retries})...`);
}
}
);
core.info(`Docker daemon started started successfully`);
Expand Down

0 comments on commit 19f5e39

Please sign in to comment.