Skip to content

Commit 3af49a1

Browse files
Add SSH agent forwarding to devcontainer
1 parent dbe6c2a commit 3af49a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
8080,
2525
9000
2626
],
27+
"mounts": [
28+
"type=bind,source=${env:SSH_AUTH_SOCK},target=/ssh-agent"
29+
],
30+
"containerEnv": {
31+
"SSH_AUTH_SOCK": "/ssh-agent"
32+
},
2733
// Uncomment the next line if you want start specific services in your Docker Compose config.
2834
// "runServices": [],
2935
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.

0 commit comments

Comments
 (0)