From d1459890b79c573cce99ed2c953a6a389e085d7f Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Tue, 11 Sep 2018 14:29:41 -0700 Subject: [PATCH] Fix v2 registry version call (#472) --- explorer/models/customRegistryNodes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer/models/customRegistryNodes.ts b/explorer/models/customRegistryNodes.ts index 5f71a3cff8..afced606c7 100644 --- a/explorer/models/customRegistryNodes.ts +++ b/explorer/models/customRegistryNodes.ts @@ -40,8 +40,8 @@ export class CustomRegistryNode extends NodeBase { // Returns undefined if it's valid, otherwise returns an error message public static async verifyIsValidRegistryUrl(registry: CustomRegistry): Promise { - // If the call succeeded, it's a V2 registry - await registryRequest<{}>(registry.url, 'v2', registry.credentials); + // If the call succeeds, it's a V2 registry (https://docs.docker.com/registry/spec/api/#api-version-check) + await registryRequest<{}>(registry.url, 'v2/', registry.credentials); } public async getChildren(element: CustomRegistryNode): Promise {