private String extractContainerPath(String volume) {
        if (volume.contains(":")) {
            // only split when : is not followed by \ (Windows)
            String[] parts = volume.split(":(?!\\\\)");
            if (parts.length > 1) {
                return parts[1];
            }
        }
        return volume;
    }
Get JSON which is used for <em>creating</em> a container

@return string representation for JSON representing creating a container
src/main/java/io/fabric8/maven/docker/access/ContainerCreateConfig.java