Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98538

How to change default volume mount in VS Code Remote Container?

$
0
0

How to change the default volume mount for the folder opened in the container? I have tried in my Dockerfile:

RUN mkdir /root/myproject
WORKDIR /root/myproject

As well as my .devcontainer.json:

{
    "name": "My Project",
    "dockerFile": "Dockerfile",
    "workspaceFolder": "/root/myproject",
}

But the folder is still being mounted on /workspaces/myproject within the container.


Viewing all articles
Browse latest Browse all 98538

Trending Articles