SingleContainer

abstract class SingleContainer[T <: GenericContainer[_]] extends TestContainerProxy[T]
trait Container
trait Stoppable
trait Andable
trait Startable
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Concrete methods

def binds: Seq[Bind]
def boundPortNumbers: Seq[Int]
def command: Seq[String]
def configure(configProvider: T => Unit): SingleContainer[T]
def containerId: String
def containerInfo: InspectContainerResponse
def containerIpAddress: String
def containerName: String
def copyFileFromContainer(containerPath: String, destinationPath: String): Unit
def copyFileFromContainer[T](containerPath: String, f: InputStream => T): T
def copyFileToContainer(mountableFile: MountableFile, containerPath: String): Unit
def copyFileToContainer(transferable: Transferable, containerPath: String): Unit
def copyToFileContainerPathMap: Map[MountableFile, String]
def createContainerCmdModifiers: Set[Consumer[CreateContainerCmd]]
def dockerClient: DockerClient
def env: Seq[String]
def envMap: Map[String, String]
def execInContainer(commands: String*): ExecResult
def execInContainer(outputCharset: Charset, commands: String*): ExecResult
def exposedPorts: Seq[Int]
def extraHosts: Seq[String]
def host: String
def image: Future[String]
def labels: Map[String, String]
def logConsumers: Seq[Consumer[OutputFrame]]
def logs: String
def logs(outputType: OutputType, outputTypes: OutputType*): String
def mappedPort(port: Int): Int
def network: Network
def networkAliases: Seq[String]
def networkMode: String
def portBindings: Seq[String]
def privilegedMode: Boolean
def shmSize: Long
override def start(): Unit
Definition Classes
Startable
def startupCheckStrategy: StartupCheckStrategy
override def stop(): Unit
Definition Classes
Stoppable -> Andable -> Startable
def testHostIpAddress: String
def tmpFsMapping: Map[String, String]
def volumesFroms: Seq[VolumesFrom]
def workingDirectory: String

Deprecated methods

@deprecated("See org.testcontainers.containers.Network")
def linkedContainers: Map[String, LinkableContainer]
Deprecated

Inherited methods

override def close(): Unit
Definition Classes
Stoppable -> AutoCloseable
Inherited from:
Stoppable
def foreach(f: Stoppable => Unit): Unit
Inherited from:
Andable
def getDependencies(): Set[Startable]
Inherited from:
Startable

Deprecated and Inherited methods

@deprecated("Use `stop` and/or `TestLifecycleAware.afterTest` instead")
override def failed(e: Throwable)(implicit description: Description): Unit
Deprecated
Definition Classes
Inherited from:
TestContainerProxy
@deprecated("Use `stop` instead")
override def finished()(implicit description: Description): Unit
Deprecated
Definition Classes
Inherited from:
TestContainerProxy
@deprecated("Use `start` instead")
override def starting()(implicit description: Description): Unit
Deprecated
Definition Classes
Inherited from:
TestContainerProxy
@deprecated("Use `stop` and/or `TestLifecycleAware.afterTest` instead")
override def succeeded()(implicit description: Description): Unit
Deprecated
Definition Classes
Inherited from:
TestContainerProxy

Implicits

Deprecated and Inherited implicits

@deprecated("Please use reflective methods from the wrapper and `configure` method for creation")
implicit def container: T
Deprecated
Inherited from:
TestContainerProxy