File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/github/dockerjava/netty Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 125
125
126
126
import org .bouncycastle .jce .provider .BouncyCastleProvider ;
127
127
128
+ import unisockets .Addr ;
129
+
128
130
import javax .net .ssl .SSLContext ;
129
131
import javax .net .ssl .SSLEngine ;
130
132
import javax .net .ssl .SSLParameters ;
@@ -254,7 +256,10 @@ protected void initChannel(final SocketChannel channel) throws Exception {
254
256
255
257
@ Override
256
258
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 ();
258
263
}
259
264
}
260
265
You can’t perform that action at this time.
0 commit comments