share .ssh with containers

This commit is contained in:
zhiqiang feng
2024-02-20 10:56:56 +00:00
parent 270fe39260
commit 533637f54c
+2 -2
View File
@@ -40,8 +40,8 @@
}
},
"mounts": [
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly"
]
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
]
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],