Mount local users .ssh directory into the dev container in order to use SSH keys for signing off git commits

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-07-25 15:33:43 +00:00
parent 9f1c3851c5
commit 4d2a9f47bf
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -7,5 +7,9 @@
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"eamodio.gitlens"
],
"mounts": [
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly"
]
}