public static boolean dockerIsDockerMachine() {
        return DockerClientFactory.instance().isUsing(DockerMachineClientProviderStrategy.class);
    }
Provides utility methods for determining facts about the test environment.
core/src/main/java/org/testcontainers/utility/TestEnvironment.java