testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::DockerClient::PullRetry Struct Reference

Bounded-retry policy for pull_image (see set_pull_retry). More...

#include <testcontainers/docker/DockerClient.hpp>

Public Attributes

int attempts = 3
 Total tries for one pull (>= 1; 1 disables retrying).
std::chrono::milliseconds first_delay {1000}
 Sleep before the first retry, doubled for each retry after that.

Detailed Description

Bounded-retry policy for pull_image (see set_pull_retry).

Member Data Documentation

◆ attempts

int testcontainers::DockerClient::PullRetry::attempts = 3

Total tries for one pull (>= 1; 1 disables retrying).

◆ first_delay

std::chrono::milliseconds testcontainers::DockerClient::PullRetry::first_delay {1000}

Sleep before the first retry, doubled for each retry after that.