Answer the question
In order to leave comments, you need to log in
Why does docker maven not see the folder?
Maven starts by itself. The version is checked.
When you try to run the mount bind file with the SimpleTest .java test, it says that it does not see the directory.
Running
docker run --rm --mount type=bind,src=/dir_for_bind/,target=/bind/ -w /bind/ maven:3.6.3-ibmjava-8 mvn -Dtest=SimpleTest test
Specified additionally what to look for in the mounted directory -w /bind/
When I run, just to check for availability - everything is enabled
docker run -it --rm --mount type=bind,src=/dir_for_bind/,target=/bind/ -w /bind/ maven: 3.6.3-ibmjava-8bash
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question