Skip to content

Hover link on image: field in compose.yaml always points to Docker Hub, even for private registries #179

Description

@krave1986

Describe the bug

When hovering over an image: field in a compose.yaml file, the extension generates a link pointing to https://hub.docker.com/r/<image>, even when the image reference includes a private registry hostname.

For example, with the following Compose service:

services:
  code-sync:
    image: nrt.vultrcr.com/wulicoco/code-sync

Hovering over the image value shows:
https://hub.docker.com/r/nrt.vultrcr.com/wulicoco/code-sync

This is incorrect — nrt.vultrcr.com is a private Vultr Container Registry, not Docker Hub.

Expected behavior

The extension should detect that the image reference includes a registry hostname (a domain with a TLD, such as nrt.vultrcr.com) and either:

  • Generate a correct link to the private registry

Steps to reproduce

  1. Create a compose.yaml with an image: field referencing a private registry, e.g. nrt.vultrcr.com/myorg/myimage
  2. Hover over the image value in the editor
  3. The hover tooltip shows a link incorrectly pointing to hub.docker.com

Environment

  • OS: Linux
  • VS Code version:
    Version: 1.109.5 (system setup)
    Commit: 072586267e68ece9a47aa43f8c108e0dcbf44622
    Date: 2026-02-19T19:43:32.382Z
    Electron: 39.3.0
    ElectronBuildId: 13313481
    Chromium: 142.0.7444.265
    Node.js: 22.21.1
    V8: 14.2.231.22-electron.0
    OS: Windows_NT x64 10.0.19045
  • Container Tools extension version: 2.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions