microsoft / microsoft/vscode-remote-release
Allow user to add a local volume mount for all Dev Containers
Open
@chrmarti is already working on this.
Since Jul 22, 2024.
containers
feature-request
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
I have a directory of convenience scripts, ~/scripts/, that I use in many Dev Containers. Currently, I have to individually add the mount to .devcontainer.json for each workspace. Additionally, if the .devcontainer.json in a remote repository changes, I have to reconcile my local changes to sync.
What I would like to be able to do is to add mount mappings to my User Settings, like this:
// settings.json
{
"dev.containers.defaultMounts": [
"source=~/scripts,target=/scripts,type=bind",
"source=${localWorkspaceFolder}/../project_scripts,target=/project_scripts,type=bind"
]
}
This would be similar to how dev.containers.defaultExtensions works already.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.