2015-10-02 88 views
0

我試着運行一個簡單的容器中,並得到了錯誤消息錯誤時啓動一個容器

docker run docker/whalesay boo 
Error response from daemon: Cannot start container 843b258e583b1e9966dc9b771f613e60b887ecc2059376473e06ede68e1bd347: [8] System error: exec: "boo": executable file not found in $PATH 

我在做什麼錯?

回答

0

您試圖在容器內執行「boo」命令。實際上,你要運行的容器內的cowsay程序,噓聲傳遞給

$ docker run docker/whalesay cowsay boo 
_____ 
<boo> 
----- 
    \ 
    \ 
     \  
        ##  .    
       ## ## ##  ==    
      ## ## ## ##  ===    
     /""""""""""""""""___/ ===   
    ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~/===- ~~~ 
     \______ o   __/    
     \ \  __/    
      \____\______/