withInstanceSuspending
suspend fun <R> withInstanceSuspending(context: CoroutineContext? = null, block: suspend DockerClient.() -> R): R
Executes block using a new instance of DockerClient, automatically closing the client after the block has exited.
Unlike withInstance, this method executes block using Dispatchers.IO by default, but can be overridden by the context parameter.