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

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐