美文网首页
Docker: /bin/sh^M: bad interpret

Docker: /bin/sh^M: bad interpret

作者: 王晨玮Mark | 来源:发表于2019-04-19 16:58 被阅读0次

Execute .sh shell script at a container on Windows
Error: /bin/sh^M: bad interpreter: No such file or directory

https://www.cnblogs.com/felixzh/p/6108345.html

SLOVE:
  • Open your executive file with vi or vim
  • Type the command ':set ff' or ':set fileformat',than you can see fileformat=[dos]
  • Type the command :set ff=unix or :set fileformat=unix
  • ok ,Execute again

相关文章

网友评论

      本文标题:Docker: /bin/sh^M: bad interpret

      本文链接:https://www.haomeiwen.com/subject/xblcgqtx.html