Class ContainerPathResolver
java.lang.Object
org.aksw.jenax.engine.docker.common.ContainerPathResolver
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerPathResolvercreate()static com.github.dockerjava.api.command.InspectContainerResponseFind and inspect the container that matches this process's hostname.static PathresolvePath(ContainerPathResolver containerPathResolver, Path path)
-
Method Details
-
resolvePath
-
create
-
resolve
-
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
-