Docker unable to mount volume with node app

I have create a local node express app and now I am trying to run the node app via Docker.

docker run -p 8080:3000 -v $(pwd):/var/www -w "/var/www" node npm start
npm info it worked if it ends with ok
npm info using npm@5.0.3
npm info using node@v8.1.2
npm ERR! path /var/www/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/var/www/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:

Host: MAC
Using Docket toolbox to create the container.

  • How to gracefully shut down a server running in docker
  • How can I push a war from windows system to boot2docker's VM tomcat webapp folder?
  • Compile docker on armv7
  • Specify order Dockers run on Kubernetes pod
  • gevent not valid running Docker Registry
  • Dockerfile RUN command returning “No such file or directory”
  • application runs locally but do not start via docker.

    Any idea?
    docker inspect <> Does show the mount

    "Mounts": [
                {
                    "Type": "bind",
                    "Source": "/Jsapp/ExpressSite",
                    "Destination": "/var/www",
                    "Mode": "",
                    "RW": true,
                    "Propagation": ""
    

  • Need help regarding ECS service in AWS
  • Docker pull mysql stuck
  • difference between localhost and postgres for host in docker
  • Docker-Tuleap : tuleap Could not dump ssh keys for user admin
  • docker logs doesn't log detached exec
  • Using docker environment variables in docker-compose run commands
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.