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

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

3)修改成unix

:set ff=unix               回车

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-09-22
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-19
  • 2021-05-28
  • 2022-02-18
  • 2022-03-01
  • 2021-10-10
  • 2021-07-27
相关资源
相似解决方案