microsoft / microsoft/vscode-remote-release

Allow user to add a local volume mount for all Dev Containers

Open
#10,088 1 comment 6 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.