DockerDaemon

API abstraction layer for Docker daemon.

Inheritors

Constructors

Link copied to clipboard
protected constructor(hostname: String)

Types

Link copied to clipboard
class Bound(val hostname: String) : DockerDaemon

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

Link copied to clipboard
object Companion
Link copied to clipboard
private class DockerClientUnboundImpl(val dockerClientImpl: DockerClient) : DockerClient

A DockerClient implementation which blacklists creation and removal operations for containers, images and volumes, as well as starting and waiting for containers.

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

Properties

Link copied to clipboard

Retrieves a bound instance of DockerDaemon.

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

Host name to the Docker engine.

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