我尝试运行一个简单的容器并收到错误消息
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 :(得分:0)
您正尝试将“boo”作为容器内的命令执行。您实际上想要在容器内运行cowsay
程序,并将boo传递给 :
$ docker run docker/whalesay cowsay boo
_____
< boo >
-----
\
\
\
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/