Class DockerHelper


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

      • DockerHelper

        public DockerHelper()
    • Method Detail

      • 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)