bash: xxx : /bin/sh^M: bad interpreter: No such file or directory

window环境下,在docker中执行命令,提示

bash: xxx : /bin/sh^M: bad interpreter: No such file or directory

解决办法

dos2unix xxx xxx
    原文作者:alonwang
    原文地址: https://www.jianshu.com/p/a169b8e67b27
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞