public static String createMinGWPath(String path) {
        String mingwPath = path.replace('\\', '/');
        int driveLetterIndex = 1;
        if (mingwPath.matches("^[a-zA-Z]:\\/.*")) {
            driveLetterIndex = 0;
        }

        // drive-letter must be lower case
        mingwPath =
            "//" +
            Character.toLowerCase(mingwPath.charAt(driveLetterIndex)) +
            mingwPath.substring(driveLetterIndex + 1);
        mingwPath = mingwPath.replace(":", "");
        return mingwPath;
    }
Create a MinGW compatible path based on usual Windows path

@param path a usual windows path
@return a MinGW compatible path
core/src/main/java/org/testcontainers/utility/PathUtils.java