执行命令:docker run -d --name test testtwo

运行结果:

[root@localhost ~]# docker run -d --name test testtwo
7bd8717c28a002e6f3b97259be59f38367e56004e0ec0a54fe214a247aa6fa22
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/root/entrypoint.sh\": permission denied": unknown.

问题分析:"/root/entrypoint.sh\只有只读的权限,没有执行的权限

解决的方法添加执行的权限

RUN ["chmod", "+x", "/home/entrypoint.sh"]

https://stackoverflow.com/questions/62766528/cannot-start-service-app-oci-runtime-create-failed-container-linux-go349

Logo

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

更多推荐