自定義容器啟動指令碼報錯:exec user process caused "no such file or directory"

YatHo發表於2017-11-23

建立容器起不來,一直是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映象即可。

相關文章