Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

garden publish command fails because local image is not found #5045

Closed
mkhq opened this issue Sep 8, 2023 · 2 comments
Closed

garden publish command fails because local image is not found #5045

mkhq opened this issue Sep 8, 2023 · 2 comments

Comments

@mkhq
Copy link
Contributor

mkhq commented Sep 8, 2023

Bug

Current Behavior

When running garden publish <target>, the command fails when trying to upload the image to the remote registry.

✖ build.api            → Failed publishing build api (took 15.3 sec)
✖ build.api            → Failed processing publish Build type=container name=api (took 15.33 sec). This is what happened:

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Unable to run docker command: Command ".garden/tools/docker/1cbaf5c26b78806e/docker/docker push <registry>/test/api:latest" failed with code 1:

An image does not exist locally with the tag: <registry>/test/api

Here's the full output:

The push refers to repository [<registry>/test/api]
An image does not exist locally with the tag: <registry>/test/api

Expected behavior

The image should be pushed to the target registry.

Reproducible example

---
kind: Build
type: container
name: api
description: The api service
spec:
  publishId: api:latest

Workaround

Suggested solution(s)

One option is to make sure we add the missing tag in the local docker repo.

Additional context

Your environment

  • OS:
  • How I'm running Kubernetes:

0.13.13

@mkhq mkhq added the bug label Sep 8, 2023
@vvagaytsev
Copy link
Collaborator

We have a community PR that might be able to address this: #4074. The tag here seems to contain slashes. That might be the root cause.

@vvagaytsev
Copy link
Collaborator

vvagaytsev commented May 21, 2024

Cannot reproduce this with the latest build from the main branch. This was likely fixed in #6052 or in one of the earlier releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants