Dockerfile的CMD指令报错:no such file or directory”: unknown.
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.这是我的Doc
·
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"]
更多推荐
已为社区贡献3条内容
所有评论(0)