docker run -p 8080:3000 -v /$(pwd):/var/www -w "/var/www" node npm start
然而,这给出了一个错误
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:
npm ERR! /root/.npm/_logs/2018-11-25T18_11_06_089Z-debug.log
我正在文件夹中运行docker命令