我正在尝试在使用 docker 的 Windows 中运行某个应用程序。由于该应用程序是 shell 脚本,因此我使用 cygwin 终端。作为 docker 的新手,我对其工作原理没有明确的想法。
使用 boot2docker,我在 Windows 7 中打开了一个 docker 终端,并有一个 cygwin 终端来运行脚本。
但是当我运行脚本时,说
./xyz init
我收到以下错误
trying to run docker resulted in exit code 127
您能告诉我应该采取哪些基本急救措施来解决这个问题吗?
该应用程序是从vision.ai获得的,名为vmx。有关应用程序的信息在这里。
https://docs.vision.ai/ https://docs.vision.ai/
非常感谢您的帮助。
我遇到了几乎相同的问题,问题只是在以该文件结尾的窗口中,它正在使用CRLF
代替LF
,将其更改为LF
它可能会起作用(使用 Notepad++、IntelliJ 或 Visual Code),参考以下答案:
env: bash\r: 没有这样的文件或目录 https://stackoverflow.com/questions/29045140/env-bash-r-no-such-file-or-directory/29045187#29045187
如何使用 gitattributes 将子目录中的所有文件设置为使用特定 eol? https://stackoverflow.com/questions/6670140/how-do-i-set-all-files-in-a-subdirectory-to-use-a-specific-eol-using-gitattribut/25653519#25653519
So my .gitattributes
现在的文件是这样的:
* text=auto
/docker/* text eol=lf
/ci/* text eol=lf
/sbt text eol=lf
/docker-*.sh text eol=lf
/sbt-dist/bin/*.bash text eol=lf
/sbt-dist/bin/sbt text eol=lf
这些属性是因为我在docker中部署了play框架项目。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)