Open robmaw opened 1 year ago
Windows 11 Enterprise 22H2 22624.1546
we have the same issue.
workaround for now is to disable wayland in the devcontainer settings.
"customizations": {
"vscode": {
"settings": {
"dev.containers.mountWaylandSocket": false
}
}
}
@robmaw , I am not sure if it's something specific to the extension version and/or the dev container being used in your case.
I could get the javascript-node dev container working with Dev Containers extensions version v0.288.1 and Rancher Desktop 1.8.1
May be a good idea to document the workaround suggested above as a Troubleshooting tip? @sunilarjun
@gunamata I think that's a good idea, I'll work on getting a PR up for the docs!
It seems like an issue with the daemon cri-dockerd which doesn't support this platform specific mount syntax, that could also be a SMB server. Maybe something have to be one around here github.com/Mirantis/cri-dockerd/core/helpers_windows.go
we have the same issue.
workaround for now is to disable wayland in the devcontainer settings.
"customizations": { "vscode": { "settings": { "dev.containers.mountWaylandSocket": false } } }
You can also disable this globally in your user settings under extensions if you prefer to do things that way.
If you use the Open User Settings (JSON)
command then it's exactly the same key as above. ("dev.containers.mountWaylandSocket": false
)
Actual Behavior
The VSCode dev-containers extension underwent a change post v0.266 to support WSLG. Prior to this I was able to use Rancher Desktop fine with VS Code dev-containers. N.B. Docker Desktop continues to work with post 0.266 versions of VSCode dev-containers
Steps to Reproduce
Install Rancher desktop (v 1.8.1) Install VS Code Dev Containers extension > v0.266 (e.g. v0.288) Open VS Code and add devcontainer configuration files (any will do) Choose to reopen in container when prompted Observe failure when VS Code is trying to run the container.
Result
One key change after v0.266 is the additional mount for wslg:
Expected Behavior
The same command line executes correctly when using DockerDesktop:
i.e.
Additional Information
No response
Rancher Desktop Version
1.8.1
Rancher Desktop K8s Version
n/a
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Wiondows 11 Enterprise 22H2 22624.1546
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
N/A