如何解决自动图像生成检测失败错误:找不到组件映射考虑将Dockerfile添加到工作区,然后重试
我正在使用 Visual Studio Code 和 Cloud Code 扩展名。当我尝试“ 部署到Cloud Run ”时,出现此错误:
自动图像生成检测失败。错误:没有组件图 找到了。考虑将Dockerfile添加到工作区,然后重试。
但是我已经有了一个Dockerfile:
# Python image to use.
FROM python:3.8
# Set the working directory to /app
WORKDIR /app
# copy the requirements file used for dependencies
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Install ptvsd for debugging
RUN pip install ptvsd
# Copy the rest of the working directory contents into the container at /app
COPY . .
# Run app.py when the container launches
ENTRYPOINT ["python","-m","ptvsd","--port","3000","--host","0.0.0.0","manage.py","runserver","--noreload"]
请问如何解决?
解决方法
我无法解决此问题,但我向Cloud Code团队进行了检查,听起来gcloud可能存在根本问题,这不是你的错。
我认为您不会再看到此错误,但是如果您遇到这种错误,那么可以在Cloud Code VS Code repo提交问题,这样我们就可以收集更多信息并仔细查看,那就太好了
这确实表明我们需要改进错误消息。我已经提交了一个错误来修复有关这种情况的消息。
,我不知道为什么,但是在连接到另一个网络并运行以下命令后,错误消失了。
gcloud auth revoke
gcloud auth login
gcloud init
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。