Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit fa99c26

Browse files
garryodgilesknap
authored andcommitted
Mount ssh & inputrc in mounts list
1 parent 4ccb601 commit fa99c26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"initializeCommand": "bash -c 'for i in $HOME/.inputrc; do [ -f $i ] || touch $i; done'",
2626
"runArgs": [
2727
"--net=host",
28-
"--security-opt=label=type:container_runtime_t",
29-
"-v=${localEnv:HOME}/.ssh:/root/.ssh",
30-
"-v=${localEnv:HOME}/.inputrc:/root/.inputrc"
28+
"--security-opt=label=type:container_runtime_t"
3129
],
3230
"mounts": [
31+
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind",
32+
"source=${localEnv:HOME}/.inputrc,target=/root/.inputrc,type=bind",
3333
// map in home directory - not strictly necessary but useful
3434
"source=${localEnv:HOME},target=${localEnv:HOME},type=bind,consistency=cached"
3535
],

0 commit comments

Comments
 (0)