Retry skopeo inspect command

Enables to retry skopeo inspect. Add `--retry-times` to set the number of times to retry. Use exponential backoff and  1s as default initial retry delay.

Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
Qi Wang
2020-06-03 16:55:44 -04:00
parent 840c48752e
commit 0858cafffc
5 changed files with 134 additions and 20 deletions

View File

@@ -29,6 +29,8 @@ Return low-level information about _image-name_ in a registry
**--cert-dir** _path_ Use certificates at _path_ (\*.crt, \*.cert, \*.key) to connect to the registry
**--retry-times** the number of times to retry, retry wait time will be exponentially increased based on the number of failed attempts
**--tls-verify** _bool-value_ Require HTTPS and verify certificates when talking to container registries (defaults to true)
**--no-creds** _bool-value_ Access the registry anonymously.