Skip to content

Commit d2245be

Browse files
committed
privileged mode and usb mount for devcontainer
1 parent 0f10c50 commit d2245be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
}
1919
},
20-
"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}"
20+
"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}",
2121

2222
// Features to add to the dev container. More info: https://containers.dev/features.
2323
// "features": {},
@@ -30,4 +30,10 @@
3030

3131
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
3232
// "remoteUser": "root"
33+
"runArgs": [
34+
"--privileged"
35+
],
36+
"mounts": [
37+
"type=bind,source=/dev/bus/usb,target=/dev/bus/usb"
38+
]
3339
}

0 commit comments

Comments
 (0)