docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused “exec: “/bin/echo”: stat /bin/echo: no such file or directory”: unknown.

这是我的Dockerfile文件:

FROM hello-world
CMD ["/bin/echo","this is a echo test"]

依赖的基础镜像错了,hello-world镜像中根本就不存在/bin目录,如果只是测试的话可以将基础镜像换成busybox。

FROM busybox
CMD ["/bin/echo","this is a echo test"]
Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐