Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MikeEvansLarah opened this issue Mar 31, 2023 · 8 comments
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@MikeEvansLarah
Copy link

MikeEvansLarah commented Mar 31, 2023

  • 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

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Mar 31, 2023
@rik1599
Copy link

rik1599 commented Apr 1, 2023

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.

@MikeEvansLarah
Copy link
Author

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

@jsburckhardt
Copy link

Have a look into this issue #8172

@bamurtaugh
Copy link
Member

It sounds like this may be covered by #8172 (comment), and then #8157.

Are folks still experiencing this?

@bamurtaugh bamurtaugh added the info-needed Issue requires more information from poster label Apr 25, 2023
@CaringDev
Copy link

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

@OneCyrus
Copy link

OneCyrus commented May 2, 2023

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
     }
   }
 }

@CaringDev
Copy link

@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.

@KeesCBakker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants