docker(install): increase number of retries and log them
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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`);
|
||||||
|
|||||||
Reference in New Issue
Block a user