DockerContainer
Wrapper class representing a Docker container.
TODO(Derppening): Mark the constructor as internal after modularization.
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun <T : ResultCallbackTemplate<ResultCallback.Adapter<Frame>, Frame>, ContainerLogger> log(containerLogger: T, configure: suspend LogContainerCmd.() -> Unit = {}): T
Retrieves the logs of this container.
Link copied to clipboard
suspend fun writePath(hostPath: Path, containerPath: Path, configure: suspend CopyArchiveToContainerCmd.() -> Unit = {})
Writes the content from the hostPath to containerPath.
suspend fun writePath(inputStream: TarArchiveInputStream, path: Path, configure: suspend CopyArchiveToContainerCmd.() -> Unit)
Writes the content from the inputStream to path.