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
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -207,6 +207,7 @@ export class Install {
}
});
proc.unref();
const retries = 20;
await retry(
async bail => {
await Exec.getExecOutput(`docker version`, undefined, {
@ -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`);