Class DockerHelper

java.lang.Object
org.hobbit.utils.docker.DockerHelper

public class DockerHelper extends Object
A simple utility class that helps to work with docker and docker accessories.
Author:
Denis Kuchelev
  • Constructor Details

    • DockerHelper

      public DockerHelper()
  • Method Details

    • getHost

      public static String getHost()
      Gets hostname (or address) of the host at which docker service configured in environment runs.
      Returns:
      plain hostname (or address)
    • getHost

      public static String getHost(String dockerURI)
      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)