Mounting Local Folders
You can mount local folders or files into your dev container using the mounts
property:
{
"mounts": [
"source=${localWorkspaceFolder}/.npmrc,target=/root/.npmrc,type=bind,consistency=cached",
"source=${env:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached"
]
}
This is useful for sharing config files, SSH keys, or other resources from your host.