package org.testcontainers.dockerclient;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;

public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy {

    @Override
    public DockerClientConfig provideConfiguration()
            throws InvalidConfigurationException {
        DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri("unix:///var/run/docker.sock").build();
        DockerClient client = DockerClientBuilder.getInstance(config).build();

        try {
            client.pingCmd().exec();
        } catch (Exception e) {
            throw new InvalidConfigurationException("ping failed");
        }

        LOGGER.info("Access docker with unix local socker");
        return config;
    }

    @Override
    public String getDescription() {
        return "unix socket docker access";
    }

}

@@ -279,16 +279,97 @@
 tegy %7B%0A%0A
+    public static final String SOCKET_LOCATION = %22unix:///var/run/docker.sock%22;%0A%0A
     @Ove
@@ -366,32 +366,32 @@
 %0A%0A    @Override%0A
-
     public Docke
@@ -577,37 +577,23 @@
 Uri(
-%22unix:///var/run/docker.sock%22
+SOCKET_LOCATION
 ).bu
@@ -868,16 +868,19 @@
 (%22Access
+ing
  docker 
@@ -888,25 +888,25 @@
 ith 
-unix 
 local 
+Unix 
 socke
-r
+t
 %22);%0A
@@ -1002,17 +1002,23 @@
 return %22
-u
+local U
 nix sock
@@ -1024,21 +1024,33 @@
 ket 
-docker access
+(%22 + SOCKET_LOCATION + %22)
 %22;%0A 

Update log wording for Unix socket config strategy