public static String convertTcpToHttpUrl ( String connect ) { String protocol = connect . contains ( ":" + DOCKER_HTTPS_PORT ) ? "https:" : "http:" ; return connect . replaceFirst ( "^tcp:" , protocol ) ; }
Convert docker host URL to an http URL