mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-27 06:46:07 +08:00
docker(install): increase number of retries and log them
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
945af30d0c
commit
19f5e39cc1
@ -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`);
|
||||
|
Loading…
Reference in New Issue
Block a user