diff --git a/core/src/main/java/org/testcontainers/DockerClientFactory.java b/core/src/main/java/org/testcontainers/DockerClientFactory.java index 2cead2b8331..0e68cc87965 100644 --- a/core/src/main/java/org/testcontainers/DockerClientFactory.java +++ b/core/src/main/java/org/testcontainers/DockerClientFactory.java @@ -41,7 +41,7 @@ public class DockerClientFactory { new UnixSocketClientProviderStrategy(), new ProxiedUnixSocketClientProviderStrategy(), new DockerMachineClientProviderStrategy(), - new NamedPipeSocketClientProviderStrategy()); + new WindowsClientProviderStrategy()); private String activeApiVersion; private String activeExecutionDriver; diff --git a/core/src/main/java/org/testcontainers/dockerclient/NamedPipeSocketClientProviderStrategy.java b/core/src/main/java/org/testcontainers/dockerclient/WindowsClientProviderStrategy.java similarity index 79% rename from core/src/main/java/org/testcontainers/dockerclient/NamedPipeSocketClientProviderStrategy.java rename to core/src/main/java/org/testcontainers/dockerclient/WindowsClientProviderStrategy.java index 85131d2944d..fe4eed817c3 100644 --- a/core/src/main/java/org/testcontainers/dockerclient/NamedPipeSocketClientProviderStrategy.java +++ b/core/src/main/java/org/testcontainers/dockerclient/WindowsClientProviderStrategy.java @@ -4,19 +4,13 @@ import com.github.dockerjava.core.DockerClientConfig; import org.jetbrains.annotations.NotNull; -import java.io.File; - -public class NamedPipeSocketClientProviderStrategy extends DockerClientProviderStrategy { +public class WindowsClientProviderStrategy extends DockerClientProviderStrategy { private static final int PING_TIMEOUT_DEFAULT = 5; private static final String PING_TIMEOUT_PROPERTY_NAME = "testcontainers.namedpipesocketprovider.timeout"; @Override public void test() throws InvalidConfigurationException { - if (!new File("\\\\.\\pipe\\docker_engine").exists()) { - throw new InvalidConfigurationException("this strategy only works with Docker for Windows"); - } - config = tryConfiguration("tcp://localhost:2375"); }