标签本地不存在图像

时间:2017-09-11 20:44:10

标签: codeship

我正在玩代码船。

当codeship尝试将docker镜像推送到我的私有注册表时,我有错误:

Build Error: Image Push error for image myprivateregistry.com/sancho/test:latest, An image does not exist locally with the tag: myprivateregistry.com/sancho/test


2017-09-11T20:08:44.814Z test build/pull started
2017-09-11T20:09:23.019Z test build/pull finished successfully
2017-09-11T20:09:23.019Z test build/push started for test
2017-09-11T20:09:23.156Z test The push refers to a repository [myprivateregistry.com/sancho/test]

我的codeship-steps.yml

- service: test
  type: push
  image_name: myprivateregistry.com/sancho/test
  registry: https://myprivateregistry.com
  encrypted_dockercfg_path: dockercfg.encrypted

您在我的配置中看到任何错误吗?

1 个答案:

答案 0 :(得分:1)

我添加

image_tag: latest

它有效!