怎么了?
我使用Google Cloud GUI为我的项目创建了一个容器构建触发器。
触发器链接到我的GC存储库。
它产生了以下内容:
docker build \
-t gcr.io/myprojectid/$REPO_NAME:$COMMIT_SHA \
-f Dockerfile \
.
每当运行此触发器时,我都会收到消息:
"Failed to trigger build: Request contains an invalid argument."
如果我检查构建细节,它会说:
invalid build: invalid image "gcr.io/myprojectid/myreponame:mycommitsha"
日志不可用。
我在单独的存储库中为两个单独的服务尝试了此方法,两者的结果相同。
这是我要构建的dockerfile之一。
它们可以在我的笔记本电脑上正常工作。
FROM python:3.6
WORKDIR /usr/src/app
RUN pip3 install --upgrade pip && \
pip3 install numpy && \
pip3 install pandas && \
pip3 install sqlalchemy && \
pip3 install psycopg2-binary && \
pip3 install sklearn && \
pip3 install tensorflow && \
pip3 install keras
COPY . .
# Tensorboard
EXPOSE 6006
CMD python -u ./trainer.py
最佳答案
关于docker - 谷歌云容器注册表错误: “Failed to trigger build: Request contains an invalid argument.”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50562141/