ContainerHook

izumi.distage.docker.model.ContainerHook

Runs against a container after it is created and before it is started.

A container is reused only if it was created with hooks whose reuseKeys are identical, in the same order. The key must therefore identify everything the hook changes in the container, and must be stable across runs for reuse to work at all.

If afterCreate throws, the container is removed and acquisition fails with a DockerFailureException whose cause is the hook's exception.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def afterCreate(client: DockerClient, containerId: ContainerId): Unit
def reuseKey: String