'How to stop visual-studio-code from appending "v2" to the path when adding generic docker registry
I'm trying to add JFrog Container Registry from Visual Studio Code Insiders. The connection is successful but getting 404 error because"/v2/' is automatically appended to the url. How can I disable this?
Solution 1:[1]
I had a similar problem. My company uses JFrog Artifactory for storing docker artifacts and it is available in browser as
https://my.company.com/artifactory/
where the artifactory/ suffix is the so called subdomain. The docker registry api however is available via
https://my.company.com/artifactory/api/docker/my-docker-repository-key/
once I used this address the extension started working as intended.
Solution 2:[2]
The /v2 is part of the container registry API, so if you get a 404 accessing that, you aren't connecting to that API. The container registry listens on a different port of the Artifactory server. You need to connect to a proxy that recognizes a different hostname or port for the registry server and sends requests to the appropriate Artifactory backend. See the Artifactory setup guide for how to setup that reverse proxy.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andrei Bazarenko |
| Solution 2 | BMitch |
