波神

导航

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

1、现象

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

2、原因

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

1)用vi打开文件

2)执行 :set ff   然后回车,可以看到fileformat=dos

3)修改成unix

:set ff=unix               回车

 

posted on 2019-03-04 14:27  波神  阅读(9084)  评论(0编辑  收藏  举报