自定义容器启动脚本报错:exec user process caused "no such file or directory"
2017-10-24 00:08
525 查看
创建容器起不来,一直是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"
- 运行docker容器时报standard_init_linux.go:195: exec user process caused "no such file or directory" 的解决方法
- standard_init_linux.go:175: exec user process caused "no such file or directory"
- 自己编写的linux的service脚本启动报错:No such file or directory
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
- Shell脚本报错:-bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory
- linux执行脚本报错: No such file or directory
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
- 运行linux的脚本老是出现": No such file or directory"错误
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
- PG启动报错(could not load server certificate file "server.crt": No such file or directory)
- shell脚本报错:-bash: xxx: /bin/bash^M: bad interpreter: No such file or directory
- Glassfish Cannot run program "/usr/libexec/StartupItemContext; error=2 , No such file or directory
- docker 无法启动,报错:Unit docker.socket failed to load: No such file or directory
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
- 执行shell脚本报错:bin/sh^M: bad interpreter: No such file or directory
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
- centos启动zookeeper报错:No such file or directory FAILED TO WRITE PID
- shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory --引用自http://blog.csdn.net/xiaaiwu/article/details/49126777
- Shell脚本报错:-bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory