Bound

class Bound(val hostname: String) : DockerDaemon

A bound instance of DockerDaemon is a daemon which declares resource reservation and is bound to a task.

Bound daemons can be replicated via boundInstance, and unbound daemons can be created from bound daemons via unboundInstance. However, there is generally no such need, as bound daemons expose more functionality than unbound daemons.

Constructors

Link copied to clipboard
constructor(hostname: String)

Properties

Link copied to clipboard

Retrieves a bound instance of DockerDaemon.

Link copied to clipboard
open override val containerApi: DockerContainerApi
Link copied to clipboard

Host name to the Docker engine.

Link copied to clipboard
open override val imageApi: DockerImageApi
Link copied to clipboard
protected open val instance: DockerClient

A DockerClient instance which connects to the host of this DockerDaemon.

Link copied to clipboard
Link copied to clipboard
protected val logger: Logger
Link copied to clipboard

Retrieves an unbound instance of DockerDaemon.

Link copied to clipboard
open override val volumeApi: DockerVolumeApi

Functions

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun <R> withInstance(block: DockerClient.() -> R): R

Executes block using a new instance of DockerClient, automatically closing the client after the block has exited.

Link copied to clipboard
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.