Unbound

class Unbound(val hostname: String) : DockerDaemon

An unbounded instance of DockerDaemon is a daemon which does not declare resource reservations nor is strictly bound to a task.

Unbounded daemons only expose the low-level Docker APIs for usage. As such, these daemons cannot be used in virtualized environment abstraction APIs.

The intended use-case for unbounded daemons are when Docker engines are needed for tasks which do not require resource reservation, or tasks which are agnostic to individual Docker engines.

Unbounded daemons can be replicated via unboundInstance. However, unbounded daemons cannot be converted into bound daemons, due to the inability to bind to tasks or reserve resources.

There is no need to unbind unbounded daemons after use.

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 override 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.