diff --git a/core/src/main/java/org/testcontainers/utility/TestEnvironment.java b/core/src/main/java/org/testcontainers/utility/TestEnvironment.java index 3e858c35f3b..dbd8e45a98f 100644 --- a/core/src/main/java/org/testcontainers/utility/TestEnvironment.java +++ b/core/src/main/java/org/testcontainers/utility/TestEnvironment.java @@ -21,7 +21,8 @@ public static boolean dockerApiAtLeast(String minimumVersion) { public static boolean dockerExecutionDriverSupportsExec() { String executionDriver = DockerClientFactory.instance().getActiveExecutionDriver(); - return !executionDriver.startsWith("lxc"); + // Could be null starting from Docker 1.13 + return executionDriver == null || !executionDriver.startsWith("lxc"); } public static boolean dockerIsDockerMachine() {