microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.21k stars 515 forks source link

An error occurs when executing "Docker Registries: Copy Image Digest" command from command palette #4098

Closed v-chenzha closed 1 year ago

v-chenzha commented 1 year ago

OS: All Build Version: 20230926.1 Regression: Previous Release

Repro Steps:

  1. Disconnect all registries (Azure/Docker Hub/GitHub/Generic Registry V2) in REGISTRIES view.
  2. F1 -> Docker Registries: Copy Image Digest -> Select "Connect Registry...".
  3. Check whether the next step is "Select the provider for your registry".

Expect: The next step is "Select the provider for your registry". image

Actual: An error occurs. image

More Info: This issue also reproduces when executing "Docker Registries: Copy Full Tag/Delete Image/Deploy Image to Azure App Service.../Deploy Image to Azure Container Apps.../Pull Repository/Pull Image/Log Out of Docker CLI/Log In to Docker CLI" command from command palette.

alexyaang commented 1 year ago

That would make sense since these commands need at least one registry to be connected to work. I think we can either 1. throw a better error, or 2. run the connect registry command.

bwateratmsft commented 1 year ago

Let's throw a better error here.