Tag: gcloud

为什么GCR的容器registry忽略_catalog分页参数

当试图用分页参数的_catalog API查询我的GCR 容器registry时 ,我发现没有Docker文档中描述的分页机制。 $ TOKEN=$(gcloud auth print-access-token) $ curl -v -u _token:${TOKEN} -X GET "https://gcr.io/v2/_catalog?n=1" 我看到你一次获得所有的存储库。 我希望得到一个单一的存储库。 这是响应的主体: {"repositories":["image1","image2","image3", … , "image2016"]} 响应的头部没有关于GCR处理请求的方式的信息,即以下查询返回与上述相同的结果: curl -v -u _token:${TOKEN} -X GET "https://gcr.io/v2/_catalog" 谷歌表示,它支持所有的V2dockerregistryAPI。

Google云组件未启用

我试图通过Travis-CI自动构build到谷歌云,但是当我试图运行“gcloud docker any_command”,我得到的消息 ERROR: (gcloud) Invalid choice: 'docker'. Did you mean 'config'? 当我尝试安装与“gcloud组件安装docker”docker“我得到 You cannot perform this action because the component manager has been disabled for this installation. If you would like get the latest version of the Google Cloud SDK, please see our main download page at: https://developers.google.com/cloud/sdk/ ERROR: (gcloud.components.update) The component manager is […]

我需要在谷歌云中的Web服务容器负载平衡器?

我已经build立了一个使用谷歌容器引擎工作的Web服务器。 它是一个运行Web服务的容器,可以从浏览器访问。 本教程说使用负载平衡器来公开一个外部IP,我做了。 我的问题是: 我必须使用负载平衡器吗? 还是有另一种方式来获得外部IP? 我问的原因是,负载平衡器看起来将比任何其他部分的成本方式,我实际上不需要负载平衡任何东西。 我使用谷歌定价计算器来承担这一点。

Docker生成期间的gcloud连接问题

在我的Dockerfile中的pip install requirements.txt步骤中,Google Cloud Shell断开连接。 错误消息是: The connection to your Google Cloud Shell was lost. 错误发生之前的日志是: Step 3 : WORKDIR /app —> Running in fd690eb34995 —> 565d7a3d5ce1 Removing intermediate container fd690eb34995 Step 4 : RUN pip install -r requirements.txt —> Running in 18e2513dcbe8 Collecting Flask (from -r requirements.txt (line 1)) Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB) Collecting pandas […]

如何在Docker构build中运行gcloud

我正尝试构build一个自定义的docker镜像,以在GAE上运行的django web应用上运行testing和迁移。 为此,我们需要使用Cloud SQL进行身份validation。 这需要gcloud sdk + Cloud SQL代理的组合,但在docker build -t MY_IMAGE .期间docker build -t MY_IMAGE . ,我得到这个错误/bin/sh: 1: gcloud: not found 。 在构build期间如何运行gcloud? 这是Dockerfile: FROM gcr.io/google-appengine/python LABEL python_version python3.5 # Create a virtualenv for dependencies. This isolates these packages from # system-level packages. RUN virtualenv –no-download /env -p python3.5 # Setting these environment variables […]

在尝试使用jsonvalidationgcloud时出错

所以我有gcloud泊坞窗图像,并希望通过图像使用gcloud,但我需要进行身份validation,我得到这个错误。 ERROR: (gcloud.auth.activate-service-account) Could not read json file credentials.json: Invalid control character 这些是我正在使用的命令 echo -n "$GOOGLE_TOKEN" > /tmp/credentials.json – cat /tmp/credentials.json – gcloud auth activate-service-account –key-file=/tmp/credentials.json 和服务帐户JSON在其他应用程序上工作。

无法从Kubernetes上的不同集群中提取容器

我有两个集群,一个是Kubernetes 1.8.3-gke.0,另一个是1.7.8,两个集群都有相同的密钥。 在1.7.8上,我推送一个部署文件,从dockerhub上的私有容器创build一个新的pod。 在这种情况下,我没有问题拉成功的容器。 在1.8.3-gke.0中,我也是这样做的,推送完全相同的部署文件,但在这种情况下,我得到一个错误: Failed to pull image "some/container:latest": rpc error: code = Unknown desc = Error response from daemon: repository some/container not found: does not exist or no pull access Error syncing pod 我不明白为什么会发生这种情况,两者都使用相同的密钥和相同的部署文件。 在1.7.8之前我有同样的问题,但通过魔术开始工作。 谢谢

Google云容器registry问题,同时推送泊坞窗图像

我有一个Google项目,我是其中一员。 它是由另一个开发人员创build的,他把我添加为所有者。 现在,我创build了一个VM实例,我在其中安装了docker。 在安装docker后,我通过提供git仓库作为参数来创build我的node.js应用程序的映像。 但是,在设置gcloudconfiguration参数后,在尝试推送该泊坞窗图像时,它给了我500错误 Error: Status 500 trying to push repository <project-id>/<image-name>: "Internal Error." 我的gcloud和docker版本信息: – Google Cloud SDK 0.9.71 Docker 1.7.1版,build 786b29d

上传/推送数据到Google云卷

Google Container引擎上有一个docker图像,并附有卷。 有没有办法从我的本地filesytem文件到附件卷?

Kubernetes荚失败,同时打电话给未知的证书autority谷歌云pub / sub

我有一个kubernetes集群设置,我试图从我的pod发布消息到谷歌云pub / sub。 当由pod进行POST调用(由API后台创build)时,它不能引用以下问题: 2016/07/21 10:31:24 Publish failed, Post https://pubsub.googleapis.com/v1/projects/<project-name>/topics/MyTopic:publish?alt=json: x509: certificate signed by unknown authority 我已经在我的docker Debian镜像的/ etc / ssl / certs里放了一个自签名的证书。 我是否需要购买由某些authentication机构签署的SSL证书,或者需要自签名的人才能完成这项工作,而我错过了这里的一些东西。