我在 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/