Class ContainerUtils
java.lang.Object
org.aksw.jenax.engine.docker.common.ContainerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.github.dockerjava.api.command.InspectContainerResponsedetectContainer(com.github.dockerjava.api.DockerClient dockerClient) static com.github.dockerjava.api.command.InspectContainerResponseFind and inspect the container that matches this process's hostname.
-
Constructor Details
-
ContainerUtils
public ContainerUtils()
-
-
Method Details
-
findSelfByHostname
public static com.github.dockerjava.api.command.InspectContainerResponse findSelfByHostname() throws IOExceptionFind and inspect the container that matches this process's hostname.- Returns:
- InspectContainerResponse of the matching container
- Throws:
IOException- if /etc/hostname can't be readRuntimeException- if the container cannot be found
-
detectContainer
public static com.github.dockerjava.api.command.InspectContainerResponse detectContainer(com.github.dockerjava.api.DockerClient dockerClient)
-