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

api calls do not return the same list of tags as the web interface (missing tags) #687

Closed
ssbarnea opened this issue Jun 2, 2016 · 18 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Jun 2, 2016

We have a private docker registry at hub.docker.io and we discovered that the api does not return all the tags that are visible in the web interface.

API call like https://index.docker.io/v1/repositories/company/reponame/tags returns a list that is not the same as the one we are seeing on https://hub.docker.com/r/company/reponame/tags/

Some tags are not returned by the API even after 16h from when they were changes. My impression is that the ones that are not returned are the ones that were added later, as aliases.

I already raised this problem on http://stackoverflow.com/questions/37590442/hub-docker-io-reports-tags-in-the-web-interface-but-we-cannot-some-of-them-using because I was not sure it was bug, but now I think is a bug, a severe one.

@samuelsinayoko
Copy link

I've had the same problem.

@earnaway
Copy link

earnaway commented Jun 9, 2016

I noticed this last week and again it's happening now. I can see the tags in the web interface, but they're missing from the API.

@goowikns
Copy link

Same for me... This is really bad timing :(

@ssbarnea
Copy link
Author

Here are some insights: it seems that you can get the correct list of tags if you are using the v2 API but the v1 API returns an incomplete list of them.

I was able to port the code to use the v2 API but it was a real PITA - the fact that the v2 API is marketed as simple or easy to use is just a big joke. The only authentication that I've seen to be more complicated than the docker one was the kerberos one. So many API calls only to perform basic tasks.

@goowikns
Copy link

So i guess the docker package used in Synology uses the API v1 instead of 2.

I truly hope they can just hotfix their web api service in time ^^

@chevdor
Copy link

chevdor commented Jul 2, 2016

Same issue, same conclusion here.
Synology seems to be still running API v1. It still remains strange that v1 does not return the same results than v2. I could see that v1 returns the OLD tags but not the newer. That means that more and more people will run into the issue overtime. Especially, if one rebuild the 'latest' tag of an image, it will not longer be visible...

@TheTwist76
Copy link

TheTwist76 commented Jul 21, 2016

I've had the same problem. With the docker package from Synology.
Is it a Docker or Synology Problem?

@bruvv
Copy link

bruvv commented Jul 30, 2016

yep same issue here, have any reported it to synology yet? I have done just now if everyone does it they may consider it
Text written to synology support (for you to copy pasting :))

Synology docker DSM uses docker API v1 and therefore the tags are missing when build again in docker!
Issue described here:
https://github.com/docker/hub-feedback/issues/687

@chevdor
Copy link

chevdor commented Jul 31, 2016

I find Synology VERY unresponsive, especially when it comes to handling issues reported via their support system. I suggest, if you want a change as I do, is to use twitter. It seems that they don´t like the bad publicity and it is also much easier for people seeing your tweet to +1 or RT to add their voice publicly. This is unfortunate but seems to be how it is...
Here is my original Tweet, feel free to RT: https://twitter.com/chevdor/status/749280932239183872

@bruvv
Copy link

bruvv commented Aug 1, 2016

I got a respons from synology:

Dear Customer,

Thank you for contacting Synology support.

Not every registry/repo support v2, so our plan in the future is to implement a way to obtain tag using v1 first and use v2 as a failover if tag could not be obtained.

For now, you can pull images via command to mitigate this issue.

docker pull <image>:<tag>

Hope this helps.

Best Regards,
Allen C.
Synology Technical Support

@kellenarb
Copy link

Just to share a workaround, you can SSH into your synology and run:

docker pull <user/image>:latest

This will grab the latest tag for the Image and it will show up under "Image" in the Docker GUI.

@ghusta
Copy link

ghusta commented Nov 23, 2016

Still having the same problem with registry API v1 today :
"I could see that v1 returns the OLD tags but not the newer."

Tested on this image : "ghusta/jboss-as" which should return at least 2 tags but returns none with API v1.

@ssbarnea
Copy link
Author

Some teams need to learn the meaning of API contract.... Everywhere you ask about docker you hear about people that hate that each update breaks everything.

@awaissindhu
Copy link

Hey guys,

Any resolution on this? I am hitting the same issue. Is there a work around?

@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label May 28, 2021
@chevdor
Copy link

chevdor commented May 28, 2021

Since this will get closed, I would recommend anyone to simply stay away from using Synology's Docker. Like many of the stuff they do, they will likely drop it...
You will save time installing (you probably need the command line to map the .sock) portainer or something equivalent and using that instead of the over-buggy and barely maintained Synology option.

@bruvv
Copy link

bruvv commented May 28, 2021

No need to keep this open since this specific issue has been fixed ;)

@github-actions github-actions bot removed the Stale label May 29, 2021
@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
Projects
None yet
Development

No branches or pull requests