简体   繁体   中英

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM