getDaemonBlocking

suspend fun getDaemonBlocking(runner: Runner, backoff: Duration = Duration.ofSeconds(1)): DockerDaemon

Returns a DockerDaemon allocated to a Runner instance, blocking until a daemon is bound to the runner instance.

Return

A DockerDaemon bound to the runner. If a daemon has already been allocated for the runner, returns that runner instead.

Parameters

runner

Runner to obtain a daemon for.

backoff

Duration to back off for when a daemon is not found.

Throws

if the daemon bound to the runner is disconnected.

if a runner's resource reservation cannot be satisfied by any online daemons.