ContainerReaperOptions Class

Configures the watchdog container started by ContainerRuntime.StartReaperAsync.

public sealed class ContainerReaperOptions

Constructors

NameDescription
ContainerReaperOptions()

ContainerReaperOptions()

ContainerReaperOptions.cs
public ContainerReaperOptions()

No documentation is available.

Properties

NameDescription
ConnectionTimeoutGets or sets how long the watchdog waits for this process to connect before it gives up and removes the resources. Defaults to one minute.
ImageGets or sets the image of the watchdog. Defaults to testcontainers/ryuk, whose protocol this implementation speaks.
ReconnectionTimeoutGets or sets how long the watchdog waits, after this process is gone, before it removes the resources. Defaults to ten seconds.
SocketPathGets or sets the path of the daemon socket, as the daemon sees it, which is mounted into the watchdog so it can remove the resources. Defaults to the socket the runtime reports: the one it connects to on Linux (rootless daemons included), the socket of the podman service, and /var/run/docker.sock inside the virtual machine of Docker Desktop, Colima or similar on macOS and Windows.

ConnectionTimeout

ContainerReaperOptions.cs

Gets or sets how long the watchdog waits for this process to connect before it gives up and removes the resources. Defaults to one minute.

public TimeSpan ConnectionTimeout { get; set; }

Property value

TimeSpan

Gets or sets the image of the watchdog. Defaults to testcontainers/ryuk, whose protocol this implementation speaks.

public ImageSource Image { get; set; }

Property value

ImageSource

ReconnectionTimeout

ContainerReaperOptions.cs

Gets or sets how long the watchdog waits, after this process is gone, before it removes the resources. Defaults to ten seconds.

public TimeSpan ReconnectionTimeout { get; set; }

Property value

TimeSpan

Gets or sets the path of the daemon socket, as the daemon sees it, which is mounted into the watchdog so it can remove the resources. Defaults to the socket the runtime reports: the one it connects to on Linux (rootless daemons included), the socket of the podman service, and /var/run/docker.sock inside the virtual machine of Docker Desktop, Colima or similar on macOS and Windows.

public string? SocketPath { get; set; }

Property value

string?