docker: executable file not found in $PATH

后端 未结 10 1034
刺人心
刺人心 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:28

    This was the first result on google when I pasted my error message, and it's because my arguments were out of order.

    The container name has to be after all of the arguments.

    Bad:

    docker run  -v $(pwd):/src -it
    

    Good:

    docker run -v $(pwd):/src -it 
    

提交回复
热议问题