Linux docker run失败了
我看到下面的错误,docker在虚拟箱顶部的rhel7中运行 我只是想用Linux docker run失败了,linux,docker,Linux,Docker,我看到下面的错误,docker在虚拟箱顶部的rhel7中运行 我只是想用helloworldimage [root@localhost ~]# 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
helloworld
image
[root@localhost ~]# 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时可能没有执行权限。 尝试使用您具有执行权限的目录,例如主目录 或者,您可能需要在运行docker命令的目录上运行
chmod+x
。尝试此命令
sudo service docker restart
它在Ubuntu中通常很有用,/不能用作卷 将\“/hello\”:更改为\“hello\”: 我想是在Dockerfile里吧
查看fromlestate.io查看Dockerfile错误Stack Overflow是一个关于编程和开发问题的网站。对于此问题,您应该使用上的另一个站点。您是从docker hub中提取图像还是通过docker文件构建图像?似乎您得到了一个没有/hello脚本的“ello world”映像(或者它没有执行权限)