Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2d9482

Browse filesBrowse files
author
Marcus Linke
committed
wip
1 parent b6b6196 commit b2d9482
Copy full SHA for b2d9482

1 file changed

+6-1Lines changed: 6 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/main/java/com/github/dockerjava/netty/DockerCmdExecFactoryImpl.java
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.