启动容器时出错

时间:2015-10-02 19:40:32

标签: docker

我尝试运行一个简单的容器并收到错误消息

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

我做错了什么?

1 个答案:

答案 0 :(得分:0)

您正尝试将“boo”作为容器内的命令执行。您实际上想要在容器内运行cowsay程序,并将boo传递给

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