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

workspaceMount/workspaceMount does not support Windows paths (Windows Containers issue) #4658

Closed
CarlosDomingues opened this issue Mar 12, 2021 · 2 comments
Labels
containers Issue in vscode-remote containers

Comments

@CarlosDomingues
Copy link

Problem

Using Windows paths in workspaceMount and workspaceFolder doesn't seem to be possible. Trying to use Windows paths as targets for either volumes and bind mounts will return Workspace folder in devcontainer.json must be an absolute path..

Information

  • VSCode Version: 1.55.0-insider
  • Local OS Version: Windows 10
  • Remote OS Version: Any Windows Container
  • Remote Extension/Connection Type: Docker

Steps to Reproduce

  1. On a Windows 10 computer, enable Windows Containers.
  2. Check if Windows Containers are working correctly, e.g: docker run -it -v c:\Users\<my-user>:c:\Workspace mcr.microsoft.com/windows/servercore:1809 Powershell
  3. Try to configure .devcontainer/.devcontainer.json:
{
  "name": "vscode-wincontainer-test",
  "dockerFile": "Dockerfile",
  "context": "..",
  "workspaceMount": "source=${localWorkspaceFolder},target=c:\Workspace",
  "workspaceFolder": "c:\Workspace"
}

.devcontainer/Dockerfile:

FROM  mcr.microsoft.com/windows/servercore:1809
SHELL ["Powershell", "-Command"]

I have tried a few path variations such as \\, as well as using Unix paths (/), but none would work.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

@CarlosDomingues CarlosDomingues changed the title workspaceMount/workspaceMount does not support Windows paths workspaceMount/workspaceMount does not support Windows paths (Windows Containers issue) Mar 12, 2021
@github-actions github-actions bot added the containers Issue in vscode-remote containers label Mar 12, 2021
@vovimayhem
Copy link

Hey, just FYI, looks like windows containers aren't supported:

https://code.visualstudio.com/docs/remote/containers#_system-requirements

@chrmarti
Copy link
Contributor

Duplicate of #445

@chrmarti chrmarti marked this as a duplicate of #445 Mar 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

3 participants