Krumelur
Krumelur

Reputation: 32497

Remote containers on Windows - how?

I have been playing around with the Remote containers feature of VS Code. If I have a .devcontainer directory inside my repo, VS code suggests to open the repo using a bind mount.

However, bind mounting to Windows seems to have two major drawbacks:

So I think my questions is really about: is remote containers at all usable on Windows for practical purposes and if so, how do I best set it up?

Upvotes: 1

Views: 240

Answers (1)

Boris Wilhelms
Boris Wilhelms

Reputation: 661

While it does work good for me in Windows 10 (2004 update), I recommend using devcontainer using WSL2 as it works "smoother".

The file permissions issue might be fixable using the remoteUser property in the devcontainer.json file. Just remove the comment and use the remoteUser value that is supplied by the template.

Upvotes: 1

Related Questions