Skip to content

Commit fa2e60d

Browse files
committed
Update devcontainer.json to include SSH config mount
1 parent 6f29f5a commit fa2e60d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
"remoteUser": "node",
1717
"updateContentCommand": "npm install -g @devcontainers/cli",
1818

19-
// Bind mount the host's /tmp/devcontainercli to the container's /tmp/devcontainercli`
2019
"mounts": [
21-
"source=/tmp,target=/tmp,type=bind"
20+
// Bind mount the host's /tmp/devcontainercli to the container's /tmp/devcontainercli`
21+
"source=/tmp,target=/tmp,type=bind",
22+
23+
// Bind mount the host's SSH config to the container's SSH config
24+
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
2225
],
2326

2427
// Add custom VS Code settings and extensions

0 commit comments

Comments
 (0)