public String dockerLogin(String registry, String username, String password) {
        StringBuilder sb = new StringBuilder(docker(USE_CONFIG));
        sb.append(LOGIN).append(SPACE).append(registry).append(SPACE);
        if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {
            sb.append(USER_ARG).append(username);
            if (isPasswordJson(password)) {
                password = "'" + password + "'";
            }
            sb.append(PASS_ARG).append(password);
        }
        return sb.toString();
    }
@param registry
@param username
@param password
@return docker --config ConfigFile login registry -u username -p password
commons/src/main/java/io/hyscale/commons/commands/provider/ImageCommandProvider.java