Class DockerProbe

Namespace
ProtoTest.Testcontainers
Assembly
ProtoTest.Testcontainers.dll

The one availability probe for containers: whether the Docker daemon answers. A container provider condition reads it, so a machine without a container runtime skips the provider instead of failing the build.

public static class DockerProbe
Inheritance
DockerProbe
Inherited Members

Properties

Condition

The condition a container provider registers: available when Docker answers.

public static IProtoProviderCondition Condition { get; }

Property Value

IProtoProviderCondition

Methods

IsAvailable()

Returns whether the Docker daemon answers through the same endpoint configuration Testcontainers uses, so the probe agrees with the container that would start.

public static bool IsAvailable()

Returns

bool