Class ContainerUtils

java.lang.Object
org.aksw.jenax.engine.docker.common.ContainerUtils

public class ContainerUtils extends Object
  • Constructor Details

    • ContainerUtils

      public ContainerUtils()
  • Method Details

    • findSelfByHostname

      public static com.github.dockerjava.api.command.InspectContainerResponse findSelfByHostname() throws IOException
      Find and inspect the container that matches this process's hostname.
      Returns:
      InspectContainerResponse of the matching container
      Throws:
      IOException - if /etc/hostname can't be read
      RuntimeException - if the container cannot be found
    • detectContainer

      public static com.github.dockerjava.api.command.InspectContainerResponse detectContainer(com.github.dockerjava.api.DockerClient dockerClient)