Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 自动图像生成检测失败。错误:找不到组件映射。考虑向工作区添加DoCKFrm并再次尝试_Docker_Visual Studio Code_Google Cloud Platform_Dockerfile_Google Cloud Run - Fatal编程技术网

Docker 自动图像生成检测失败。错误:找不到组件映射。考虑向工作区添加DoCKFrm并再次尝试

Docker 自动图像生成检测失败。错误:找不到组件映射。考虑向工作区添加DoCKFrm并再次尝试,docker,visual-studio-code,google-cloud-platform,dockerfile,google-cloud-run,Docker,Visual Studio Code,Google Cloud Platform,Dockerfile,Google Cloud Run,我正在使用Visual Studio代码和云代码扩展。当我尝试“部署到云运行””时,出现以下错误: 自动图像生成检测失败。错误:组件映射不正确 建立考虑向工作区添加DoCiFrm并重试。 但我已经有了一个Dockerfile: # Python image to use. FROM python:3.8 # Set the working directory to /app WORKDIR /app # copy the requirements file used for dependen

我正在使用Visual Studio代码云代码扩展。当我尝试“部署到云运行””时,出现以下错误:

自动图像生成检测失败。错误:组件映射不正确 建立考虑向工作区添加DoCiFrm并重试。

但我已经有了一个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"]

如何解决这个问题,请?

我不知道为什么,但在连接到不同的网络并运行下面的命令后,错误消失了

gcloud auth revoke
gcloud auth login
gcloud init

我无法重新解释这个问题,但我与云代码团队进行了联系,听起来gcloud可能存在一个根本问题,这不是你的错

我不认为你会再次看到这个错误,但如果你看到了,如果你能在网站上提交一个问题,这样我们就可以收集更多信息并仔细查看,那将是非常棒的

这确实表明我们需要改进错误消息。我已经提交了一个bug来修复关于这个场景的消息