@Override public String execCommand(String containerName,String command) throws FatalDockerJSONException {
  String output=execCommand(containerName,command,false);
  if (output.contains("Permission denied")) {
    logger.warn("[" + containerName + "] exec command in privileged mode : "+ command);
    output=execCommand(containerName,command,true);
  }
  return output;
}

@ Override public String execCommand ( String containerName , String command ) throws FatalDockerJSONException { String output = execCommand ( containerName , command , false ) ; if ( output . contains ( "Permission denied" ) ) { logger . warn ( "[" + containerName + "] exec command in privileged mode : " + command ) ; output = execCommand ( containerName , command , true ) ; } return output ; }
execute a shell conmmad into a container . return the output as string
