Skip to content

Commit

Permalink
Merge pull request #272 from testcontainers/docker4mac_1_13_fix
Browse files Browse the repository at this point in the history
fix for Docker for Mac with 1.13
  • Loading branch information
rnorth committed Jan 21, 2017
2 parents 398c6b6 + 7158c7b commit 638e4d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 638e4d0

Please sign in to comment.