docker ENTRYPOINT执行shell报错no such file or directory

原因很可能是你在windows下编写的脚本文件,放到Linux中无法识别格式。

使用vi打开脚本文件查看是否为dos格式,如果是使用:set ff=unix可解决此问题