mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
buildah: support for --retry and --retry-delay for push/pull failures
Allows users to configure `--retry` attempts and `--retry-delay` duration using two additional flags for commands * buildah build * buildah pull * buildah push * buildah from * buildah add * buildah copy Closes: https://github.com/containers/buildah/issues/4018 Not sure how we can test retry attempts in CI, but added a test in tests/bud.bats which verfies we parse and added flag in other options for sanity parsing checking. Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
@@ -52,6 +52,18 @@ Path to an alternative .containerignore (.dockerignore) file. Requires \-\-conte
|
||||
|
||||
Refrain from printing a digest of the added content.
|
||||
|
||||
**--retry** *attempts*
|
||||
|
||||
Number of times to retry in case of failure when performing pull of images from registry.
|
||||
|
||||
Defaults to `3`.
|
||||
|
||||
**--retry-delay** *duration*
|
||||
|
||||
Duration of delay between retry attempts in case of failure when performing pull of images from registry.
|
||||
|
||||
Defaults to `2s`.
|
||||
|
||||
## EXAMPLE
|
||||
|
||||
buildah add containerID '/myapp/app.conf' '/myapp/app.conf'
|
||||
|
||||
Reference in New Issue
Block a user