java.lang.Object
org.arquillian.cube.docker.impl.client.containerobject.dsl.Container

public class Container extends Object
Base class representing a container.
  • Constructor Details

  • Method Details

    • withContainerName

      public static ContainerBuilder withContainerName(String containerName)
    • getContainerName

      public String getContainerName()
    • getCubeContainer

      public CubeContainer getCubeContainer()
    • getConnectionMode

      public ConnectionMode getConnectionMode()
    • getIpAddress

      public String getIpAddress()
      Returns the ip where this container can be reachable from outside docker host.
      Returns:
      Ip.
    • getBindPort

      public int getBindPort(int exposedPort)
      Returns binding port for given exposed port.
      Parameters:
      exposedPort - to resolve.
      Returns:
      Binding port.
    • exec

      public CubeOutput exec(String... commands)
      Executes given command inside this container.
      Parameters:
      commands - to execute.
      Returns:
      Output of the execution.
    • getLog

      public String getLog()
      Gets current logs of this container.
      Returns:
      Current logs.