How can I push a war from windows system to boot2docker's VM tomcat webapp folder?

According to boot2docker docs:

The first of the following share names that exists (if any) will be automatically mounted at the location specified:

  • run docker commands from command prompt versus jenkins script
  • Install Gitlab with disabled sign up
  • Copying files from host to Docker container
  • Docker - Multiple MySQL instances/containers running at the same time
  • Docker compose-build with rake assets:precompile
  • Update k8s ConfigMap or Secret without deleting the existing one
    1. Users share at /Users
    2. /Users share at /Users
    3. c/Users share at /c/Users
    4. /c/Users share at /c/Users
    5. c:/Users share at /c/Users

    In my case I can see an automount for c:/Users. However how do i push a war from c:/Users to the tomcat webapp folder on the VM created by boot2docker.

  • Elasticsearch Unreachable: Connection refused
  • Docker on Windows with Dart Docker Image
  • Deploy NWJS with docker
  • Is it possible to run docker services in dockerfile based on some conditions?
  • Run shell script on docker from shared volume
  • Docker-client Java: How to keep instances running?
  • One Solution collect form web for “How can I push a war from windows system to boot2docker's VM tomcat webapp folder?”

    Use -v <host-dir>:<container-dir> option in docker run to share a directory between boot2docker’s filesystem and container’s filesystem. E.g.:

    docker run -v /Users:/war/folder tomcat

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.