https://hub.docker.com/_/gradle/
I am trying to execute the docker command using gradle but it is throwing the exception on my windows environment
https://hub.docker.com/_/gradle/
docker run --rm -v “$PWD”:/project -w /project --name gradle gradle:alpine gradle
The below executable command throwing the error
COMMAND
docker run --rm -v “$PWD”:/drives/****************batch-scripts -w /drives/**************structure-testapp/batch-scripts --name gradle gradle:alpine gradle runSimpleJobConfig --debug
OUTPUT
I have verified the directory exist with permission,
12:53:35.768 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project ‘batch-scripts’ using build file ‘/drives/***********/batch-scripts/build.gradle’.
12:53:35.769 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 0.001 secs
12:53:35.772 [INFO] [org.gradle.internal.buildevents.BuildLogger] All projects evaluated.
12:53:35.791 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:53:35.791 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
12:53:35.791 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:53:35.792 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
12:53:35.792 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Failed to create parent directory '/drives//batch-scripts/.gradle’ when creating directory '/drives/***************ts/.gradle/buildOutputCleanup’
12:53:35.793 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
12:53:35.793 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
12:53:35.793 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
12:53:35.797 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
12:53:35.798 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
12:53:35.798 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
12:53:35.799 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 4.216 secs