docker run hello world errror

sudo docker run hello-world

 

执行上面的出错了,错误如下

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/hello\": stat /hello: no such file or directory": unknown.
 

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/hello\": stat /hello: no such file or directory": unknown.

执行如下的确成功了:

docker run ubuntu:16.04 /bin/echo "Hello World"
Unable to find image 'ubuntu:16.04' locally
16.04: Pulling from library/ubuntu
3620e2d282dc: Pull complete 
ef22f5e4b3b2: Pull complete 
99f229f854da: Pull complete 
4fe433abe16a: Pull complete 
c9b72a16d85e: Pull complete 
Digest: sha256:14066a391d902c386d6164d44ade3460ba044abcdf8df88b0ff79a6f635be8d3
Status: Downloaded newer image for ubuntu:16.04
Hello World

参考:https://www.jianshu.com/p/c213b8d85fe2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值