rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.7k stars 266 forks source link

Add New Devcontainer Feature Should Work in VSCode on Windows #7054

Open choigawoon opened 3 weeks ago

choigawoon commented 3 weeks ago

Problem Description

After installing Rancher Desktop, when I enter wsl -d rancher-desktop and execute code ., the "Add New Devcontainer" function works well. However, when I open VSCode in Windows and try to execute "Add New Devcontainer", the process hangs with the "Creating Devcontainer" window displayed in the bottom right corner.

Proposed Solution

It would be great if this function worked in VSCode opened from Windows, just as it does within WSL.

Additional Information

No response

gunamata commented 2 weeks ago

I could reproduce the reported behavior. The Dev Container log doesn't show any useful error messages though. The execution just waits with the message "Dev Containers CLI completed".

Here's the log from my run:

create-devcontainer-log.txt

Another observation is that if I close the VS Code session at this stage the dev container continues to run, so, reopening a new VS Code session and then trying to attach the session to the running container seems to start the devContainer as expected. Maybe this can serve as a workaround in the meantime?

choigawoon commented 1 week ago

Thank you Workaround would be good for me at this time.

andi-blafasl commented 1 day ago

Stumbled upon the same error and found the following issues: Stuck in "Replacing imageVariant with ..." step New dev container hangs and never completes

would be nice if rancher desktop could work as an dop in replacement for docker desktop with vscode and dev containers 😊