File tree 1 file changed +3
-14
lines changed
core/src/main/java/org/testcontainers/dockerclient
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,8 @@ private Path resolveSocketPath() {
34
34
Path homePath = Paths .get (System .getProperty ("user.home" )).resolve (".docker" ).resolve ("run" );
35
35
return tryFolder (homePath )
36
36
.orElseGet (() -> {
37
- Path dockerDesktopPath = Paths
38
- .get (System .getProperty ("user.home" ))
39
- .resolve (".docker" )
40
- .resolve ("desktop" );
41
- return tryFolder (dockerDesktopPath )
42
- .orElseGet (() -> {
43
- Path implicitPath = Paths .get ("/run/user/" + LibC .INSTANCE .getuid ());
44
- return tryFolder (implicitPath ).orElse (null );
45
- });
37
+ Path implicitPath = Paths .get ("/run/user/" + LibC .INSTANCE .getuid ());
38
+ return tryFolder (implicitPath ).orElse (null );
46
39
});
47
40
});
48
41
}
@@ -86,11 +79,7 @@ public TransportConfig getTransportConfig() throws InvalidConfigurationException
86
79
87
80
@ Override
88
81
protected boolean isApplicable () {
89
- return (
90
- (SystemUtils .IS_OS_LINUX || SystemUtils .IS_OS_MAC ) &&
91
- getSocketPath () != null &&
92
- Files .exists (getSocketPath ())
93
- );
82
+ return SystemUtils .IS_OS_LINUX && getSocketPath () != null && Files .exists (getSocketPath ());
94
83
}
95
84
96
85
@ Override
You can’t perform that action at this time.
0 commit comments