Having trouble running a docker image 'quorra not found'

[亡魂溺海] 提交于 2019-12-12 01:16:44

问题


After allot of ado I was able to build my dockerimage, but when I try and run it I get the following error:

$ docker run swipeimage

> uswipe-merchant@0.0.1 dev /var/app
> NODE_ENV=development quorra ride --watch --env development

sh: quorra: not found


npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! uswipe-merchant@0.0.1 dev: `NODE_ENV=development quorra ride --watch --env development`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the uswipe-merchant@0.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-12-05T10_01_14_455Z-debug.log

I tried adding RUN npm install quorrato my docker file to make sure quorra is installed but still get an error.


回答1:


Finally got it, I was looking at the quorra docs, and I changed

RUN npm install quorra

to

RUN npm install -g quorra-cli

Now it works!!!

Thanks All



来源:https://stackoverflow.com/questions/53632800/having-trouble-running-a-docker-image-quorra-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!