share .ssh with containers

This commit is contained in:
zhiqiang feng
2024-02-20 10:56:56 +00:00
parent 270fe39260
commit 533637f54c
+1 -1
View File
@@ -40,7 +40,7 @@
}
},
"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.