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
- Create a
compose.yaml with an image: field referencing a private registry, e.g. nrt.vultrcr.com/myorg/myimage
- Hover over the image value in the editor
- 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
Describe the bug
When hovering over an
image:field in acompose.yamlfile, the extension generates a link pointing tohttps://hub.docker.com/r/<image>, even when the image reference includes a private registry hostname.For example, with the following Compose service:
Hovering over the image value shows:
https://hub.docker.com/r/nrt.vultrcr.com/wulicoco/code-syncThis is incorrect —
nrt.vultrcr.comis 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:Steps to reproduce
compose.yamlwith animage:field referencing a private registry, e.g.nrt.vultrcr.com/myorg/myimagehub.docker.comEnvironment
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