docker(install): increase number of retries and log them

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-08-26 10:05:39 +02:00
parent 945af30d0c
commit 19f5e39cc1

View File

@@ -207,6 +207,7 @@ export class Install {
} }
}); });
proc.unref(); proc.unref();
const retries = 20;
await retry( await retry(
async bail => { async bail => {
await Exec.getExecOutput(`docker version`, undefined, { await Exec.getExecOutput(`docker version`, undefined, {
@@ -231,8 +232,11 @@ export class Install {
}); });
}, },
{ {
retries: 10, retries: retries,
minTimeout: 1000 minTimeout: 1000,
onRetry: (err, i) => {
core.info(`${err}. Retrying (${i}/${retries})...`);
}
} }
); );
core.info(`Docker daemon started started successfully`); core.info(`Docker daemon started started successfully`);