自定義容器啓動腳本報錯:exec user process caused "no such file or directory"

建立容器起不來,一直是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鏡像便可。
相關文章
相關標籤/搜索