Running Docker maven container

  docker, java, maven

I want to copy maven project from my dekstop to maven container and compile it in container

I run the command :

docker run -it --rm --name my-maven-project -v "/Users/ahay/Desktop/aviv" -w "/usr/share" maven:3.6.3-jdk-8 mvn clean install

And get the error :

enter image description here

But from -v flag diractory I have pom.xml :

enter image description here

Source: Docker Questions