首页 > 其他 > 详细

自定义容器启动脚本报错:exec user process caused "no such file or directory"

时间:2017-10-24 00:49:43      阅读:999      评论:0      收藏:0      [点我收藏+]

创建容器起不来,一直是restarting状态,查看容器的报错日志如下:

standard_init_linux.go:178: exec user process caused "no such file or directory"
standard_init_linux.go:178: exec user process caused "no such file or directory"
standard_init_linux.go:178: exec user process caused "no such file or directory"

 

原因是镜像的entrypoint设置的启动脚本格式是dos,在linux系统上用vi修改成unix格式即可

# vi filename
# :set ff  回车后看到当前文件的fileformat格式
# :set ff=unix 回车后输入:wq保存文件,重新build镜像即可。

 

自定义容器启动脚本报错:exec user process caused "no such file or directory"

原文:http://www.cnblogs.com/cf532088799/p/7719935.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!