docker: executable file not found in $PATH

后端 未结 10 988
刺人心
刺人心 2020-11-28 02:02

I have a docker image which installs grunt, but when I try to run it, I get an error:

Error response from daemon: Cannot start container foo_1         


        
10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 02:48

    to make it work add soft reference to /usr/bin:

    ln -s $(which node) /usr/bin/node

    ln -s $(which npm) /usr/bin/npm

提交回复
热议问题