I am using devcontainer vscode extension to run my development environment under windows using WSL.
For some reason, this works great on my MacOS, but on my Windows machine (under WSL) using the same .devcontainer
file, the /workspaces
folder (which is mounted automatically by the extension) is being mounted as read only.
$ mount | grep workspaces
/dev/sdd on /workspaces/projectname type ext4 (ro,relatime,discard,errors=remount-ro,data=ordered)
This prevents me from creating or changing files giving this output:
$ touch a
touch: cannot touch 'a': Read-only file system
Any ideas on what is the cause of this issue and how it may be fixed?