【问题标题】:Bamboo Docker build Errors with Google Container RegistryBamboo Docker 使用 Google Container Registry 构建错误
【发布时间】:2018-08-24 01:45:52
【问题描述】:

我正在尝试运行构建 docker 映像的 Bamboo(私有服务器)任务。 dockerfile 从 google 容器注册表上的图像构建。 gcr.io/项目名称/图像名称:标签。但是,每当我的任务被触发时,我都会收到构建错误。

查看日志,问题似乎是:

build   23-Aug-2018 20:08:52    Sending build context to Docker daemon 3.072 kB
build   23-Aug-2018 20:08:52    
build   23-Aug-2018 20:08:52    Step 1 : FROM gcr.io/project-name/image-name:tag
build   23-Aug-2018 20:08:52    Trying to pull repository gcr.io/project-name/image-name ... 
build   23-Aug-2018 20:08:52    Pulling repository gcr.io/project-name/image-name
error   23-Aug-2018 20:08:52    Error: Status 405 trying to pull repository project-name/image-name: "v1 Registry API is disabled. If you are not explicitly using the v1 Registry API, it is possible your v2 image could not be found. Verify that your image is available, or retry with `dockerd --disable-legacy-registry`. See https://cloud.google.com/container-registry/docs/support/deprecation-notices"
simple  23-Aug-2018 20:08:52    Failing task since return code of [/usr/bin/docker build --no-cache=true --force-rm=true --tag=gcr.io/project-name/out_image-name:outer_tag /var/atlassian/application-data/bamboo/xml-data/build-dir/3997697/AN-CA-JOB1] was 149 while expected 0

查看错误,我遇到了this google troubleshooting page,这表明确认名称是正确的。运行命令,可以确认名称返回结果。

此外,“使用dockerd --disable-legacy-registry 重试”的建议似乎过时了,因为 Docker 文档说:

disable-legacy-registry 配置选项已被移除,并且, 使用时,会在守护进程启动时产生错误。

我做错了什么?

其他细节:

  • Bamboo 版本 6.4.1 build 60405

【问题讨论】:

  • 你用的是什么版本的docker?我认为,对于
  • 不确定 docker 版本。有没有办法让我检查我是否不是管理员?上面的问题中有一个日志的 sn-p,但在此之前,它主要是一个非常长的环境变量列表 - 我可以发布一个较短的部分吗?

标签: docker bamboo google-container-registry


【解决方案1】:

原来问题是 Docker 版本过时。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-25
    • 2019-06-27
    • 1970-01-01
    • 2018-10-31
    • 2018-04-22
    • 1970-01-01
    • 2016-07-06
    • 2018-12-08
    相关资源
    最近更新 更多