microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Issue listing tags from generic registry #4309

Open vmsteiner opened 1 month ago

vmsteiner commented 1 month ago

Hi

I have setup vscode-docker to connect to my generic registry v2. Under registries I can see my registry, and when browsing it I can view my repositories catalog (so the login / connection must be working). However, when I try to browse the visible repositories catalog for the tags list, the extension just starts loading but never finishes (spinning wheel) until I restart vscode.

Using curl I can get the tags list from the repository, so this makes me think it's a issue with the extension. I also tried pushing an image to the repository / registry, and this also worked. So it really is just having issues browsing the registry at the tags list level.

OS: Windows 10 Docker: Docker Desktop vscode: 1.89.1 Extension: vscode-docker v1.29.1 Registry: Gitea Packages I tried both with https and with http (insecure registry). For https I had to use v.1.28 of the extension for it to connect (see issue #4245)

vmsteiner commented 1 month ago

I did some more testing: This works fine in Extension: vscode-docker v1.26.1 At this point, it was still called: "Connect any generic private registry that supports the "Docker V2" api. They show up, one sees the various tags / images etc. without any issues.

As of extension: vscode-docker 1.27.0 it breaks.

bwateratmsft commented 1 month ago

I haven't looked at the code yet but my hunch is that it's failing to get the tag manifest data.