Skip to content

Commit b2d9482

Browse files
author
Marcus Linke
committed
wip
1 parent b6b6196 commit b2d9482

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/github/dockerjava/netty/DockerCmdExecFactoryImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125

126126
import org.bouncycastle.jce.provider.BouncyCastleProvider;
127127

128+
import unisockets.Addr;
129+
128130
import javax.net.ssl.SSLContext;
129131
import javax.net.ssl.SSLEngine;
130132
import javax.net.ssl.SSLParameters;
@@ -254,7 +256,10 @@ protected void initChannel(final SocketChannel channel) throws Exception {
254256

255257
@Override
256258
public DuplexChannel connect(Bootstrap bootstrap) throws InterruptedException {
257-
return (DuplexChannel) bootstrap.connect(new DomainSocketAddress("/var/run/docker.sock")).sync().channel();
259+
260+
Addr addr = Addr.apply(new java.io.File("/var/run/docker.sock"));
261+
262+
return (DuplexChannel) bootstrap.connect(addr).sync().channel();
258263
}
259264
}
260265

0 commit comments

Comments
 (0)