microsoft / vscode-dapr

A Visual Studio Code extension for Dapr development
Other
58 stars 18 forks source link

The "Install Latest Dapr" still shows in the Applications tree view after installing the Dapr on Linux #244

Open v-xinda opened 2 years ago

v-xinda commented 2 years ago

OS: Ubuntu 22.04 Build Version: 20220629.2 Docker Desktop: 4.10.1

Repro Steps:

  1. Make sure install the Docker Desktop app.
  2. Install Dapr CLI by command : curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash
  3. Install Dapr Runtime by command: sudo dapr init
  4. Configure the Path in the .bashrcfile.
  5. Install the Dapr extension -> Navigate to Dapr view.
  6. Check whether the "No Dapr applications are running." shows in the Applications tree view.

Expect: The "No Dapr applications are running." shows in the Applications tree view.

Actual: The "Install Latest Dapr" shows in the Applications tree view. image Note: Check the dapr runtime by command dapr --version. image

More Info:

  1. This issue does not reproduce after installing Docker Engine.
  2. Ask to add path after running sudo dapr init. image
philliphoff commented 2 years ago

@v-xinda For various reasons, I've not been able to get Docker Desktop running on any of my Linux VMs so far. (Docker Desktop doesn't support arm64, so I can't use Parallels on my M1 Mac, and I don't have a business license yet for Parallels on my Intel Mac, and have been unsuccessful getting nested virtualization working on my Windows Hyper-V Linux VM.)

I've heard of one other user running into a similar problem with Dapr with Docker Desktop on Linux, with no resolution/workaround as of yet.

philliphoff commented 2 years ago

@v-xinda With a new Parallels license for my Intel Mac, I've made two independent attempts to create a Ubuntu VM with Docker Desktop without success; the Docker host just doesn't start. It looks like Docker doesn't officially support Docker Desktop in VMs with nested virtualization (i.e. Parallels), so it could be just that. Unfortunately, I don't have any raw hardware on which I can install Linux so that's as far as I can investigate at the moment.

v-xinda commented 2 years ago

@philliphoff I use the Linux (Inter) created by Hyper-V. The Docker Desktop can run on Linux (Inter) after configuring the setting according to the content in this link:https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization

guybartal commented 1 month ago

I'm having the same issue on WSL ubuntu, DAPR extension is not aware that DAPR cli is installed and even init