public static InternetProtocol fromDockerNotation(String protocol) {
        return valueOf(protocol.toUpperCase());
    }
The IP protocols supported by Docker.
core/src/main/java/org/testcontainers/containers/InternetProtocol.java