getDaemon

private suspend fun getDaemon(runner: Runner): DockerDaemon?

Helper method to get the DockerDaemon instance bound to a Runner, and check that the DockerDaemon is still connected to the Docker engine.

Return

The DockerDaemon instance allocated to the runner, or null if no daemon is allocated.

Throws

if the runner is not bound to this dispatcher.

if the daemon bound to the runner is disconnected.