Package org.hobbit.utils.docker
Class DockerHelper
java.lang.Object
org.hobbit.utils.docker.DockerHelper
A simple utility class that helps to work with docker and docker accessories.
- Author:
- Denis Kuchelev
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DockerHelper
public DockerHelper()
-
-
Method Details
-
getHost
Gets hostname (or address) of the host at which docker service configured in environment runs.- Returns:
- plain hostname (or address)
-
getHost
Gets hostname (or address) of the host at which specified docker service runs.- Parameters:
dockerURI- the URI docker runs at, typically contents of DOCKER_HOST env var.- Returns:
- plain hostname (or address)
-