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

image push fails with: An image does not exist locally with the tag #1828

Closed
ssinari opened this issue Jun 3, 2019 · 8 comments
Closed

image push fails with: An image does not exist locally with the tag #1828

ssinari opened this issue Jun 3, 2019 · 8 comments
Labels

Comments

@ssinari
Copy link

ssinari commented Jun 3, 2019

Problem description

This is a autobuild issue I am having with autobuild configured on Docker Hub.

I have configured autobuild for a repo on docker hub and linked it to a github repo. I have also linked an image to the tag named latest.

Screenshot from 2019-06-03 12-52-20

Here is the log from the most recent autobuild.

Screenshot from 2019-06-03 12-48-36

Apparently the build and tag commands are successful but push is failing for the autobuild.

However, push from local computer succeeds.

Screenshot from 2019-06-03 12-54-14

Any help on how to resolve this issue will be highly appreciated.

Thanks.

@sarkis
Copy link

sarkis commented Jun 20, 2019

@ssinari we've had quite a few releases go out since this issue was opened. Can you please confirm that 1) this is still an issue on your repo/build 2) provide as much info as possible on your setup and Dockerfile to help us reproduce the issue?

@ssinari
Copy link
Author

ssinari commented Jun 20, 2019 via email

@jenslaufer
Copy link

jenslaufer commented Oct 1, 2019

I am having the same problem.

My custom build hook:

#!/bin/bash

echo "===================================================================================="
echo "Custom Build hook running"

docker build --build-arg BITBUCKET_PWD=$BITBUCKET_PWD -f $DOCKERFILE_PATH -t $IMAGE_NAME .

echo "===================================================================================="

Here's the output:

Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '18.205.93.2' to the list of known hosts.
Switched to a new branch '0.6.7'
Executing build hook...
==============================================================================================
Custom Build hook running
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /src/bub2dxcomwdjx4wfjpn6wwg/docker/gpu/docker: no such file or directory
==============================================================================================
Pushing index.docker.io/jenslaufer/rl-trainer:0.6.7-gpu...
Push failed. Attempt 2 in 60 seconds.
Push failed. Attempt 3 in 60 seconds.
Push failed. Attempt 4 in 60 seconds.
Push failed. Attempt 5 in 60 seconds.
{u'message': u'An image does not exist locally with the tag: jenslaufer/rl-trainer'}

@rossja
Copy link

rossja commented Mar 11, 2020

Wondering if there's any insight into this issue? I'm experiencing the same thing.
Build hook is at https://github.com/rossja/ncc-scoutsuite/blob/master/src/hooks/build.

Build seems to work, then when the push occurs:

Step 18/18 : CMD ["/bin/bash"]
---> Running in e8d9ac52a325
Removing intermediate container e8d9ac52a325
---> 20cfa1cad3bf
Successfully built 20cfa1cad3bf
Pushing index.docker.io/rossja/ncc-scoutsuite:latest...
Push failed. Attempt 2 in 60 seconds.
Push failed. Attempt 3 in 60 seconds.
Push failed. Attempt 4 in 60 seconds.
Push failed. Attempt 5 in 60 seconds.
{u'message': u'An image does not exist locally with the tag: rossja/ncc-scoutsuite'}

Looks like maybe a timeout on the push, with a generic error message maybe?

@thaJeztah
Copy link
Member

@rossja looks like your custom hook is not tagging the image; it should tag the image rossja/ncc-scoutsuite:latest

@Prasad-vish
Copy link

You can create a webhook>their might be an issue with docker file and image or application file.

@nomadcalendar
Copy link

nomadcalendar commented Apr 16, 2021

Having the same issue without any build hooks. The build process is only able to tag "latest".

Here are more details:
https://stackoverflow.com/questions/66825416/unable-to-push-to-docker-hub-tag-does-not-exist/67067470#

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.

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

No branches or pull requests

7 participants