public static JsonObject readDockerConfig() {
        String dockerConfig = EnvUtil.getEnv("DOCKER_CONFIG");

        Reader reader = dockerConfig == null
                ? getFileReaderFromDir(new File(getHomeDir(),".docker/config.json"))
                : getFileReaderFromDir(new File(dockerConfig,"config.json"));
        return reader != null ? new Gson().fromJson(reader, JsonObject.class) : null;
    }
Helper method for extractArgs(exposed for test)

@param argLines list of string arrays containing lines with words
@return map of parsed arguments
src/main/java/io/fabric8/maven/docker/util/DockerFileUtil.java