title: Tomcat Docker Container: host webapp directory mounted as container webapp directory
body: <p>I'm trying to deploy a Java Web application located in my Host OS (Windows 10) and I would like to mount the mentioned webapp as a directory under Tomcat Docker Container (location <code>/usr/local/tomcat/webapps/mywebapp</code>).</p>
  
  <p>I'm running the following command in the Docker terminal (absolute path for my webapp in Windows). Note: "mywebapp" host directory already contains the deployed/uncompressed war.</p>
  
  <p><code>docker run --name=tomcat_7_0_78 --detach --publish 8080:8080 -v /c/desarrollo/workspace/webMavenTest/target/mywebapp:/usr/local/tomcat/webapps/mywebapp tomcat:7.0.78</code></p>
  
  <p>I can see that Tomcat starts and the webapps Container folder has several default webapps inside it including the "mywebapp" folder. The problem is that it is empty so the webapp is not working.</p>
  
  <p>I would like to use this to integrate my applications in the Eclipse IDE with Docker and achieve redeploying the application when I make changes through my IDE.</p>
  
  <p>Any insight?</p>
  
  <p>Thanks in advance.</p>