-
Notifications
You must be signed in to change notification settings - Fork 517
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
Support third-party registries #869
Comments
while connecting using private registry option, is private Docker DTR (Enterprise Docker trusted registry) supported at all? |
@gauravlakhani Support for registries beyond Docker Hub is fairly new, we haven't tested on DTR. I've added it to the list. |
@here champion! |
Hi, do we have an estimated date for this to complete? |
Following this... |
@BigMorty I think that we should take this one for 1.1... |
Agree we should try to get it into 1.1 or 1.2 |
This could potentially require and/or take advantage of microsoft/vscode#88309 |
I've spent a lot of time researching in the past few days. Unfortunately this is going to be extremely difficult, due to two main issues:
Implementing support for each registry with their own custom APIs is a non-starter. Dealing with the OAuth flows is possible, but guaranteed to result in a lot of bad user experiences, due to the complexity and prerequisite setup that most of them demand. |
+1 for Gitlab self-hosted. it does look like self hosted uses v2 and |
+1 for Gitlab self-hosted. |
+1 for Gitlab self-hosted for me as well. My environment is very constrained so I tried setting up a personal access token in the gitlab self hosted instance, but there is no way using the generic docker option or the gitlab option to connect (tried editing hosts file to point gitlab.com to self hosted instance, but that did not work the url it attempted was a 404) |
Then @alexfricker wrote:
GitLab’s Container Registry API documentation lists instance-wide Docker V2 API endpoints apart from their custom API. It looks like one just uses HTTP Basic Auth with the username and password (or Personal Access Token if using 2FA) as part of the first request for a Bearer token. |
GitHub Container Registry is not yet supported but we are actively working on a significant revamp of the registries functionality, and have included support of GitHub in that work. |
@bwateratmsft |
That wasn't in the plan but you could create a new issue to suggest that. |
A fix for this has, at long last, been released. We know this was one of our most popular asks and we wanted to make sure we got it right. Anyone who wants to add support for a registry can now do so. This means nobody has to wait for us to add support for a registry--you can easily do it yourself! Starting from https://github.com/microsoft/vscode-docker-extensibility/tree/main/packages/vscode-docker-registries (and the associated NPM package), you can either directly implement the One thing we wanted to call attention to--we decided the best place for the GitLab registry data provider to be is in its own extension, which does not yet exist. As a result, support for GitLab Container Registry is removed in Docker extension version 1.27.0. If you need that GitLab support, I would recommend staying on version 1.26.1 of the Docker extension. You can change by running the command "Extensions: Install Specific Version of Extension...", choosing the Docker extension, and choosing version 1.26.1. |
I don't know what you did but private registries are no longer visible for connection... |
Specifically requested (but goal is generic support), in no particular order:
Open:
Blocked on no/partial Registry V2 support:
/v2/
endpoint (see The extension corrupts the URL to the docker registry, making it impossible to connect. #3562)harbor.korporate.org
(see registry conected but eror 405 #1927)Done:
The text was updated successfully, but these errors were encountered: