自定義容器啟動腳本報錯: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鏡像即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM