python - Windows 10 专业版中的 Docker : python: can't open file 'manage.py' : [Errno 2] No such file or directory

标签 python django windows docker

我在 Windows 10 中使用 docker。我的 docker 项目运行良好,但是在将 docker 桌面更新到 19.03.8 后,我的现有项目面临这个错误。在更新 docker desktop 之前,该项目运行良好。但是我创建了另一个 django 项目进行测试,该项目运行时没有任何错误。
This is dockerfile of my project This is docker compose file This is the error message

最佳答案

从您的 Dockerfile 中,您只是从本地系统复制 requirements.txt 并且不会复制代码。您需要添加包含 manage.py 的代码.

因此错误`[manage.py] No such file or directory

关于python - Windows 10 专业版中的 Docker : python: can't open file 'manage.py' : [Errno 2] No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61790805/

相关文章:

Python正则表达式: search . txt文件字符串

python - 使用 Django Channels 将信息发送到所有连接的客户端

python - 阿拉伯文本不仅在 lxml 输出中显示为字符实体

python - 在 sorl-thumbnail 中调用 get_thumbnail 时,是什么导致了这种偶发的 IntegrityError ?

windows - 重置非空文件后,Freepascal 发现 eof

python - 在数据框中查找通讯员进行计算

Django-尝试使用 send_mail() 在 python shell 中发送电子邮件,但无法工作

django - 监控 django postgres 连接

windows - 在批处理脚本中检查文件大小

windows - mingw make 无法处理路径中的空格?