We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
- OS:windows10 - NVIDIA Driver: - CUDA: - Docker Compose: - NVIDIA GPU Memory:
The text was updated successfully, but these errors were encountered:
遇到了同样的错误。
Sorry, something went wrong.
我也是遇到同样的问题
找到解决方法了: 用vscode打开/scripts/entrypoint.sh文件 保存文件后启动容器即可
核心原因 文件编码问题:entrypoint.sh 脚本在 Windows 下被保存或生成,保留了 CRLF 换行符。 容器执行环境:Docker 容器基于 Linux 内核运行,无法识别 \r 字符,导致脚本解析失败。
vscode解决方法如上6xiaoxin老哥所说,没有vscode、用Notepad++的伙伴可以试试: (1)Search->Replace(或者 Ctrl+H) (2)Find what: \r\n (3)Replace with: \n (4)将 Search mode 选为Extended 这一步很重要 (5)Replace All
No branches or pull requests
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
期望行为 | Expected Behavior
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
运行环境 | Environment
QAnything日志 | QAnything logs
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
复现方法 | Steps To Reproduce
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
备注 | Anything else?
在windows上运行提示:scripts/entrypoint.sh: line 2: $'\r': command not found
The text was updated successfully, but these errors were encountered: