File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/kotlin/com/cognifide/gradle/environment/docker/runtime Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ class Desktop(environment: EnvironmentExtension) : Base(environment) {
1414 override val hostInternalIp: String get() = environment.prop.string(" environment.docker.desktop.hostInternalIp" )
1515 ? : detectHostInternalIp() ? : " 172.17.0.1"
1616
17- override val safeVolumes: Boolean get() = ! OperatingSystem .current().isWindows
17+ override val safeVolumes: Boolean get() = environment.prop.boolean(" environment.docker.desktop.safeVolumes" )
18+ ? : ! OperatingSystem .current().isWindows
1819
1920 override fun determinePath (path : String ) = Formats .normalizePath(path)
2021
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Toolbox(environment: EnvironmentExtension) : Base(environment) {
2323 null
2424 }
2525
26- override val safeVolumes: Boolean = true
26+ override val safeVolumes: Boolean get() = environment.prop.boolean( " environment.docker.toolbox.safeVolumes " ) ? : true
2727
2828 var cygpathPath = environment.prop.string(" environment.cygpath.path" )
2929 ? : " C:\\ Program Files\\ Git\\ usr\\ bin\\ cygpath.exe"
You can’t perform that action at this time.
0 commit comments