vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

'Invalid mount config' error when starting Dev Container using Rancher Desktop

Open MikeEvansLarah opened this issue 1 year ago • 8 comments

  • VSCode Version: 1.76.2

  • Local OS Version: Windows 11 10.0.22621

  • Remote Extension/Connection Type: Containers

  • Logs:

Start: Starting container
Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=c:\temp\endjin\devcontainetest,target=/workspaces/devcontainetest,consistency=cached --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=\\wsl.localhost\Ubuntu-20.04\mnt\wslg\runtime-dir\wayland-0,dst=/tmp/vscode-wayland-ba7ede98-a9e5-4dfc-a023-d66e1a09712f.sock -l devcontainer.local_folder=c:\temp\endjin\devcontainetest -l devcontainer.config_file=c:\temp\endjin\devcontainetest\.devcontainer\devcontainer.json --entrypoint /bin/sh -l devcontainer.metadata=[{"id":"./local-features/git"},{"id":"ghcr.io/devcontainers/features/common-utils:2"},{"remoteUser":"vscode"}] mcr.microsoft.com/devcontainers/base:alpine-3.17 -c echo Container started
docker: Error response from daemon: invalid mount config for type "bind": bind s
ource path does not exist: \\wsl.localhost\Ubuntu-20.04\mnt\wslg\runtime-dir\way
land-0.

Steps to Reproduce:

  1. Start Rancher Desktop
  2. Open a folder in Dev Container

Issue only occurs when using VS Code Dev Containers extension > v0.266.1

MikeEvansLarah avatar Mar 31 '23 15:03 MikeEvansLarah

Same problem: Revolved dowgrading devcontainer extension to 0.266.1. I think it is a problem of the extensione because the same problem seems appear also in Docker Desktop.

rik1599 avatar Apr 01 '23 17:04 rik1599

I did not get the error when using Docker Desktop with latest version of extension

MikeEvansLarah avatar Apr 02 '23 21:04 MikeEvansLarah

Have a look into this issue https://github.com/microsoft/vscode-remote-release/issues/8172

jsburckhardt avatar Apr 03 '23 13:04 jsburckhardt

It sounds like this may be covered by https://github.com/microsoft/vscode-remote-release/issues/8172#issuecomment-1481296173, and then https://github.com/microsoft/vscode-remote-release/issues/8157.

Are folks still experiencing this?

bamurtaugh avatar Apr 25 '23 18:04 bamurtaugh

Using v0.288.1 and dev.containers.mountWaylandSocket: false works for me using Rancher Desktop 👍🙏

CaringDev avatar Apr 25 '23 20:04 CaringDev

I had it working with mountWaylandSocket once but now the error is back also with v0.288.1.

looks like it doesn't respect the setting in the devcontainer file:

"customizations": {
   "vscode": {
     "settings": {
       "dev.containers.mountWaylandSocket": false
     }
   }
 }

OneCyrus avatar May 02 '23 14:05 OneCyrus

@OneCyrus I believe this needs to go into the user settings and not the devcontainers.json as it is specific to the machine setup and not shared via e.g. GIT.

CaringDev avatar May 02 '23 17:05 CaringDev

Had the same problem on my Windows 10. But I moved the wayland-0 and wayland-0.lock file to an backup dir. After rebuilding the dev container everything was fine. Got the idea from: https://dev.to/crumdev/vscode-dev-container-failing-to-build-ap4

KeesCBakker avatar Feb 12 '24 11:02 KeesCBakker