Class DockerProbe
- Namespace
- CobaltPdf.WebKit.Infrastructure.Provisioning
- Assembly
- CobaltPDF.WebKit.dll
Lightweight check for "is Docker actually running on this host?" Used on Windows / macOS to decide whether the auto-Docker dev path is available before we attempt a render. Result is cached for the process lifetime — Docker doesn't appear and disappear during a single .NET app run.
public static class DockerProbe
- Inheritance
-
DockerProbe
- Inherited Members
Methods
IsAvailableAsync(string, TimeSpan?, CancellationToken)
True when docker version returns successfully. Times out after
timeout so a broken Docker install can't hang the
caller. Default timeout 3 seconds.
public static Task<bool> IsAvailableAsync(string dockerExecutable = "docker", TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
dockerExecutablestringtimeoutTimeSpan?cancellationTokenCancellationToken