Skip to content

Configure retries for docker pull operationsΒ #222

@DaJoTo

Description

@DaJoTo

What would you like to be added

Would be nice to see the addition of a parameter that sits above any commands that do docker pull operations. This parameter would just be a number to stipulate how many times the script should retry docker pull failures before aborting the pipeline

Something like:
docker-pull-retries: 3

Why is this needed

The majority of our pipeline failures occur around a TLS timeout when doing pull operations (in our case doing the build-and-push-image command). The impact of this failure can be reduced by implementing a pause and retry pattern.

example of error:

Successfully created context "builder"
Unable to find image 'tonistiigi/binfmt:latest' locally
latest: Pulling from tonistiigi/binfmt

64c318a5: Pulling fs layer 
docker: error pulling image configuration: ... : net/http: TLS handshake timeout.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions