privileged mode and usb mount for devcontainer

This commit is contained in:
Sascha Hagedorn 2024-06-30 07:33:46 +00:00
parent 0f10c50b4c
commit d2245bedcb

View file

@ -17,7 +17,7 @@
] ]
} }
}, },
"postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}" "postCreateCommand": "${containerWorkspaceFolder}/.devcontainer/setup.sh ${containerWorkspaceFolder}",
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {}, // "features": {},
@ -30,4 +30,10 @@
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root" // "remoteUser": "root"
"runArgs": [
"--privileged"
],
"mounts": [
"type=bind,source=/dev/bus/usb,target=/dev/bus/usb"
]
} }