Workaround: WSLC with DevContainers inside of WSL #247
rbaker5
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If you try to open a project from inside of WSL into a WSLC hosted DevContainer, under under ms-vscode-remote.remote-containers, 0.465.0 with wslc 2.9.3.0, it will fail. There's a few steps to correcting this. Hopefully Microsoft will update the the extension/wslc in the future to make this work out of the box, but for now, I've created a workaround: https://github.com/rbaker5/wslc-devcontainers-via-wsl.
It wraps wslc.exe in a shell script that avoids some errors that, causes it to fail. Tested for Ubuntu 24.04 as the WSL host. I also noticed that when you use a bind mount to a folder in the WSL filesystem, there's an unfortunate double-hop, that causes a loss of fidelity in things like the execute bit. While the first part of this workaround could probably be addressed by a new version of ms-vscode-remote.remote-containers, this second aspect seems like it needs help from WSLC itself.
All reactions